Avoid overflow in pgtk_is_numeric_char

* 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.
This commit is contained in:
Stefan Kangas 2024-07-18 09:34:22 +02:00
parent 4c35382e98
commit c9d28a05d9

View file

@ -1803,7 +1803,7 @@ pgtk_is_numeric_char (int c)
static GSettings *
parse_resource_key (const char *res_key, char *setting_key)
{
char path[32 + RESOURCE_KEY_MAX_LEN];
char path[33 + RESOURCE_KEY_MAX_LEN];
const char *sp = res_key;
char *dp;