File: markupsafe/_speedups.c
Function: init_constants
Error: ob_refcnt of new ref from (unknown) PyUnicodeUCS4_DecodeASCII is 1 too high
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR(""");
when PyUnicodeUCS4_DecodeASCII() succeeds
new ref from (unknown) PyUnicodeUCS4_DecodeASCII allocated at: 	escaped_chars_repl['"'] = UNICHR(""");
ob_refcnt is now refs: 1 + N where N >= 0
34 	escaped_chars_repl['\''] = UNICHR("'");
when PyUnicodeUCS4_DecodeASCII() succeeds
35 	escaped_chars_repl['&'] = UNICHR("&");
when PyUnicodeUCS4_DecodeASCII() succeeds
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
when PyUnicodeUCS4_DecodeASCII() succeeds
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
when PyUnicodeUCS4_DecodeASCII() succeeds
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
when PyImport_ImportModule() succeeds
47 	if (!module)
taking False path
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
when PyObject_GetAttrString() succeeds
50 	Py_DECREF(module);
when taking True path
51 
52 	return 1;
53 }
ob_refcnt of new ref from (unknown) PyUnicodeUCS4_DecodeASCII is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 24 similar trace(s) to this

File: markupsafe/_speedups.c
Function: init_constants
Error: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10355].str) at markupsafe/_speedups.c:37
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR("&#34;");
when PyUnicodeUCS4_DecodeASCII() succeeds
34 	escaped_chars_repl['\''] = UNICHR("&#39;");
when PyUnicodeUCS4_DecodeASCII() succeeds
35 	escaped_chars_repl['&'] = UNICHR("&amp;");
when PyUnicodeUCS4_DecodeASCII() succeeds
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
when PyUnicodeUCS4_DecodeASCII() succeeds
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
when PyUnicodeUCS4_DecodeASCII() fails
dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10355].str) at markupsafe/_speedups.c:37
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
47 	if (!module)
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
50 	Py_DECREF(module);
51 
52 	return 1;
53 }

File: markupsafe/_speedups.c
Function: init_constants
Error: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10353].str) at markupsafe/_speedups.c:36
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR("&#34;");
when PyUnicodeUCS4_DecodeASCII() succeeds
34 	escaped_chars_repl['\''] = UNICHR("&#39;");
when PyUnicodeUCS4_DecodeASCII() succeeds
35 	escaped_chars_repl['&'] = UNICHR("&amp;");
when PyUnicodeUCS4_DecodeASCII() succeeds
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
when PyUnicodeUCS4_DecodeASCII() fails
dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10353].str) at markupsafe/_speedups.c:36
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
47 	if (!module)
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
50 	Py_DECREF(module);
51 
52 	return 1;
53 }

File: markupsafe/_speedups.c
Function: init_constants
Error: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10351].str) at markupsafe/_speedups.c:35
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR("&#34;");
when PyUnicodeUCS4_DecodeASCII() succeeds
34 	escaped_chars_repl['\''] = UNICHR("&#39;");
when PyUnicodeUCS4_DecodeASCII() succeeds
35 	escaped_chars_repl['&'] = UNICHR("&amp;");
when PyUnicodeUCS4_DecodeASCII() fails
dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10351].str) at markupsafe/_speedups.c:35
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
47 	if (!module)
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
50 	Py_DECREF(module);
51 
52 	return 1;
53 }

File: markupsafe/_speedups.c
Function: init_constants
Error: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10349].str) at markupsafe/_speedups.c:34
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR("&#34;");
when PyUnicodeUCS4_DecodeASCII() succeeds
34 	escaped_chars_repl['\''] = UNICHR("&#39;");
when PyUnicodeUCS4_DecodeASCII() fails
dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10349].str) at markupsafe/_speedups.c:34
35 	escaped_chars_repl['&'] = UNICHR("&amp;");
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
47 	if (!module)
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
50 	Py_DECREF(module);
51 
52 	return 1;
53 }

File: markupsafe/_speedups.c
Function: init_constants
Error: dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10347].str) at markupsafe/_speedups.c:33
28 static int
29 init_constants(void)
30 {
31 	PyObject *module;
32 	/* happing of characters to replace */
33 	escaped_chars_repl['"'] = UNICHR("&#34;");
when PyUnicodeUCS4_DecodeASCII() fails
dereferencing NULL (MEM[(struct PyUnicodeObject *)D.10347].str) at markupsafe/_speedups.c:33
34 	escaped_chars_repl['\''] = UNICHR("&#39;");
35 	escaped_chars_repl['&'] = UNICHR("&amp;");
36 	escaped_chars_repl['<'] = UNICHR("&lt;");
37 	escaped_chars_repl['>'] = UNICHR("&gt;");
38 
39 	/* lengths of those characters when replaced - 1 */
40 	memset(escaped_chars_delta_len, 0, sizeof (escaped_chars_delta_len));
41 	escaped_chars_delta_len['"'] = escaped_chars_delta_len['\''] = \
42 		escaped_chars_delta_len['&'] = 4;
43 	escaped_chars_delta_len['<'] = escaped_chars_delta_len['>'] = 3;
44 	
45 	/* import markup type so that we can mark the return value */
46 	module = PyImport_ImportModule("markupsafe");
47 	if (!module)
48 		return 0;
49 	markup = PyObject_GetAttrString(module, "Markup");
50 	Py_DECREF(module);
51 
52 	return 1;
53 }