mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +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
b773702a47
commit
fee7794789
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
|
* We should also consider adding correction tables for
|
||||||
* other things as well.
|
* other things as well.
|
||||||
*/
|
*/
|
||||||
if (OPTS_OPTION_BOOL(OPTION_CORRECTION)) {
|
if (OPTS_OPTION_BOOL(OPTION_CORRECTION) && parser_tokval(parser) <= 16) {
|
||||||
correction_t corr;
|
correction_t corr;
|
||||||
correct_init(&corr);
|
correct_init(&corr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue