diff options
author | Pip Cet <pipcet@protonmail.com> | 2025-03-28 02:33:19 +0000 |
---|---|---|
committer | Pip Cet <pipcet@protonmail.com> | 2025-03-30 11:52:07 +0000 |
commit | 67e34f0ed8f6d3bbc78187a18f71010c70e10426 (patch) | |
tree | c7595be84f8044a7704f44158b7131fc89a05ab0 /test/lisp/emacs-lisp/backtrace-tests.el | |
parent | 209b7e7444df5cb164679c0e55f46cba424ad13c (diff) | |
download | emacs-67e34f0ed8f6d3bbc78187a18f71010c70e10426.tar.gz emacs-67e34f0ed8f6d3bbc78187a18f71010c70e10426.tar.bz2 emacs-67e34f0ed8f6d3bbc78187a18f71010c70e10426.zip |
Respect narrowed buffers when parsing JSON (bug#77325)
* src/json.c (Fjson_insert): Simplify 'memcpy' argument.
(Fjson_parse_buffer): Only read to ZV, not all the way to Z.
* test/src/json-tests.el (with-all-gap-positions-in-temp-buffer):
New macro.
(json-parse-buffer/restricted): New test.
Diffstat (limited to 'test/lisp/emacs-lisp/backtrace-tests.el')
0 files changed, 0 insertions, 0 deletions