mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-01 12:20:49 +00:00
Limit corrections on strings to <= 16 bytes. Otherwise memory usage spikes instantly on errors, and causes Windows DEP to kill gmqcc.
This commit is contained in:
parent
90a016c6e0
commit
5012616cb0
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1936,7 +1936,7 @@ static bool parse_sya_operand(parser_t *parser, shunt *sy, bool with_labels)
|
|||
* We should also consider adding correction tables for
|
||||
* other things as well.
|
||||
*/
|
||||
if (OPTS_OPTION_BOOL(OPTION_CORRECTION)) {
|
||||
if (OPTS_OPTION_BOOL(OPTION_CORRECTION) && strlen(parser_tokval(parser)) <= 16) {
|
||||
correction_t corr;
|
||||
correct_init(&corr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue