aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-string.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-12-25 19:17:24 +1030
committerAlan Modra <amodra@gmail.com>2024-12-26 07:31:24 +1030
commit578c704c8eb0f376315056bde431c4403facd5e5 (patch)
tree79998793a11cd1c61202ed6fcd4b2cc1ef3c7c7b /libctf/ctf-string.c
parentebc38280ce63d63e06369354cc0e95e99e846135 (diff)
downloadbinutils-578c704c8eb0f376315056bde431c4403facd5e5.zip
binutils-578c704c8eb0f376315056bde431c4403facd5e5.tar.gz
binutils-578c704c8eb0f376315056bde431c4403facd5e5.tar.bz2
buffer overflow in gas/app.c
This testcase: .irp x x x " .end # .endr manages to access lex[EOF]. xxx: Warning: end of file in string; '"' inserted xxx:1: Warning: missing closing `"' gas/app.c:844:16: runtime error: index -1 out of bounds for type 'char [256] Following that there is a buffer overflow. Stop this happening, and in other similar places, by checking for EOF.
Diffstat (limited to 'libctf/ctf-string.c')
0 files changed, 0 insertions, 0 deletions