]> git.eshelyaron.com Git - emacs.git/commit
Fix undefined behavior in json.c (Bug#42113)
authorPhilipp Stephani <phst@google.com>
Mon, 29 Jun 2020 10:32:56 +0000 (12:32 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 29 Jun 2020 10:32:56 +0000 (12:32 +0200)
commit59e768d64ad97782249fda9e53b6adc94c6d0130
tree3221ba10b639751b10a067c1fab8017830ab46f2
parentcce00bef0313bc42beee8096d9312313889dc92d
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.
src/json.c
test/src/json-tests.el