From: Segev Finer Date: Thu, 13 Jul 2017 05:52:08 +0000 (+0300) Subject: bpo-30911: Fix a crash in json on platforms with unsigned char (#2684) X-Git-Tag: v3.7.0a1~426 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=541bd28941af407f2329e6a540d6367e5625b115;p=python bpo-30911: Fix a crash in json on platforms with unsigned char (#2684) when pass bad strict argument. --- 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;