projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c35382
)
Avoid overflow in pgtk_is_numeric_char
author
Stefan Kangas
<stefankangas@gmail.com>
Thu, 18 Jul 2024 07:34:22 +0000
(09:34 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Thu, 18 Jul 2024 07:42:07 +0000
(09:42 +0200)
* src/pgtkfns.c (parse_resource_key): Avoid overflow by making array
larger, if a key is RESOURCE_KEY_MAX_LEN long. Do not merge to master,
since it's fixed in a different way there.
src/pgtkfns.c
patch
|
blob
|
history
diff --git
a/src/pgtkfns.c
b/src/pgtkfns.c
index 49467988cae26111e950810067c7d99de2fe3686..085c41eb759fe36decb276f58f1189a261c7f71c 100644
(file)
--- a/
src/pgtkfns.c
+++ b/
src/pgtkfns.c
@@
-1803,7
+1803,7
@@
pgtk_is_numeric_char (int c)
static GSettings *
parse_resource_key (const char *res_key, char *setting_key)
{
- char path[3
2
+ RESOURCE_KEY_MAX_LEN];
+ char path[3
3
+ RESOURCE_KEY_MAX_LEN];
const char *sp = res_key;
char *dp;