Skip to content

Commit 541bd28

Browse files
segevfinerserhiy-storchaka
authored andcommitted
bpo-30911: Fix a crash in json on platforms with unsigned char (#2684)
when pass bad strict argument.
1 parent 3fbd700 commit 541bd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static PyTypeObject PyEncoderType;
1818

1919
typedef struct _PyScannerObject {
2020
PyObject_HEAD
21-
char strict;
21+
signed char strict;
2222
PyObject *object_hook;
2323
PyObject *object_pairs_hook;
2424
PyObject *parse_float;

0 commit comments

Comments
 (0)