diff options
author | B. Watson <urchlay@slackware.uk> | 2025-03-07 17:34:17 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-03-07 17:34:17 -0500 |
commit | 93bca928e8f2b5257554c1dc23b31975a31de4ff (patch) | |
tree | c45ef3a616ebfe1fff804a1ef9e32e9f2fbd19e8 | |
parent | e0d1c62907032ba74b533762d9dcc5cd591cc840 (diff) | |
download | bw-atari8-tools-93bca928e8f2b5257554c1dc23b31975a31de4ff.tar.gz |
listamsb: avoid potential buffer overflow in decrunch_line().
-rw-r--r-- | listamsb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -596,7 +596,7 @@ int need_space_between(unsigned char t1, unsigned char t2) { } int decrunch_line(void) { - unsigned char code[MAX_LINE_LEN_HARD + 1], byte = 0, prev; + unsigned char code[MAX_LINE_LEN_HARD + 10], byte = 0, prev; int lineno, ptr, codelen = 0, in_string = 0, in_comment = 0; static int addr = 0x700; /* doesn't really matter where */ |