diff options
| author | Segev Finer <segev208@gmail.com> | 2017-07-13 05:52:08 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-13 05:52:08 (GMT) |
| commit | 541bd28941af407f2329e6a540d6367e5625b115 (patch) | |
| tree | 182ae2e7076d45f825fe104c1a774ee3b806593b /Modules/_json.c | |
| parent | 3fbd70018f835edd33250de2f79b7a7ef45f8359 (diff) | |
| download | cpython-541bd28941af407f2329e6a540d6367e5625b115.zip cpython-541bd28941af407f2329e6a540d6367e5625b115.tar.gz cpython-541bd28941af407f2329e6a540d6367e5625b115.tar.bz2 | |
bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)
when pass bad strict argument.
Diffstat (limited to 'Modules/_json.c')
| -rw-r--r-- | Modules/_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index f574004..07bcd31 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; |
