diff options
author | Philipp Stephani <phst@google.com> | 2020-06-29 12:32:56 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-06-29 12:32:56 +0200 |
commit | 59e768d64ad97782249fda9e53b6adc94c6d0130 (patch) | |
tree | 3221ba10b639751b10a067c1fab8017830ab46f2 /lisp | |
parent | cce00bef0313bc42beee8096d9312313889dc92d (diff) | |
download | emacs-59e768d64ad97782249fda9e53b6adc94c6d0130.tar.gz |
Fix undefined behavior in json.c (Bug#42113)
* src/json.c (lisp_to_json_toplevel_1, Fjson_parse_string): Check
whether input strings are actually strings.
* test/src/json-tests.el (json-parse-string/wrong-type)
(json-serialize/wrong-hash-key-type): New regression tests.
Diffstat (limited to 'lisp')
0 files changed, 0 insertions, 0 deletions