Commit 541bd289 authored by Segev Finer's avatar Segev Finer Committed by Serhiy Storchaka

bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)

when pass bad strict argument.
parent 3fbd7001
...@@ -18,7 +18,7 @@ static PyTypeObject PyEncoderType; ...@@ -18,7 +18,7 @@ static PyTypeObject PyEncoderType;
typedef struct _PyScannerObject { typedef struct _PyScannerObject {
PyObject_HEAD PyObject_HEAD
char strict; signed char strict;
PyObject *object_hook; PyObject *object_hook;
PyObject *object_pairs_hook; PyObject *object_pairs_hook;
PyObject *parse_float; PyObject *parse_float;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment