]> git.eshelyaron.com Git - emacs.git/commit
Avoid overflow in pgtk_is_numeric_char
authorStefan Kangas <stefankangas@gmail.com>
Thu, 18 Jul 2024 12:48:56 +0000 (14:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:31:48 +0000 (12:31 +0200)
commitfa12e71817ce8ca784831250c8c80bb5db04c0ab
tree9268a1456e0602951be84f35e13118d295506b96
parentf63ea1ab3a1eb5ed3489eb5648224909cc0c916e
Avoid overflow in pgtk_is_numeric_char

* src/pgtkfns.c (PATH_MAX_LEN): New macro.
(parse_resource_key): Avoid overflow if a key is RESOURCE_KEY_MAX_LEN
long by making the array larger.

(cherry picked from commit 87facc9e3da3ca70a5a75eec57e3fa22c0636c92)
src/pgtkfns.c