projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90a016c
)
Limit corrections on strings to <= 16 bytes. Otherwise memory usage spikes instantly...
author
Dale Weiler <killfieldengine@gmail.com>
Sat, 15 Jun 2013 07:39:36 +0000
(07:39 +0000)
committer
Dale Weiler <killfieldengine@gmail.com>
Sat, 15 Jun 2013 07:39:36 +0000
(07:39 +0000)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index 3ab472f40454d1f3439c075b58f691624f5d7110..d6490d4cd545be1a630cddf351b2107443d7295b 100644
(file)
--- a/
parser.c
+++ b/
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);