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:
parent
4c35382e98
commit
c9d28a05d9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue