diff options
| author | Segev Finer <segev208@gmail.com> | 2017-07-13 08:52:08 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-13 08:52:08 +0300 |
| commit | 541bd28941af407f2329e6a540d6367e5625b115 (patch) | |
| tree | 182ae2e7076d45f825fe104c1a774ee3b806593b | |
| parent | 3fbd70018f835edd33250de2f79b7a7ef45f8359 (diff) | |
| download | cpython-git-541bd28941af407f2329e6a540d6367e5625b115.tar.gz | |
bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)
when pass bad strict argument.
| -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 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; |
