summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2017-07-13 08:52:08 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2017-07-13 08:52:08 +0300
commit541bd28941af407f2329e6a540d6367e5625b115 (patch)
tree182ae2e7076d45f825fe104c1a774ee3b806593b /Modules
parent3fbd70018f835edd33250de2f79b7a7ef45f8359 (diff)
downloadcpython-git-541bd28941af407f2329e6a540d6367e5625b115.tar.gz
bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)
when pass bad strict argument.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index f574004b38..07bcd318b1 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -18,7 +18,7 @@ static PyTypeObject PyEncoderType;
typedef struct _PyScannerObject {
PyObject_HEAD
- char strict;
+ signed char strict;
PyObject *object_hook;
PyObject *object_pairs_hook;
PyObject *parse_float;