Commit 0d6cff45 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

accelgroup: Fix a buffer overrun

gtk_accelerator_parse_with_keycode can
overrun its buffer for certain inputs.

Fixes: #2325
parent eeb896d6
Pipeline #139289 passed with stage
in 16 minutes and 58 seconds
......@@ -1306,9 +1306,9 @@ gtk_accelerator_parse_with_keycode (const gchar *accelerator,
last_ch = *accelerator;
while (last_ch && last_ch != '>')
{
last_ch = *accelerator;
accelerator += 1;
len -= 1;
last_ch = *accelerator;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment