Add safeguard to prevent charmap symbol length overflowing
This commit is contained in:
parent
414f6d3373
commit
d262b81bdb
@ -80,6 +80,8 @@ statment :
|
||||
| order
|
||||
;
|
||||
charmap : DEFN CHAR {
|
||||
if (strlen($1) + 1 > CHARMAP_SYMBOL_LEN)
|
||||
yyerror("Charmap symbol name '%s' is too long", $1);
|
||||
strcpy(charmap_table[$2], $1);
|
||||
}
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user