commit | 578c704c8eb0f376315056bde431c4403facd5e5 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Wed Dec 25 19:17:24 2024 +1030 |
committer | Alan Modra <amodra@gmail.com> | Thu Dec 26 07:31:24 2024 +1030 |
tree | 79998793a11cd1c61202ed6fcd4b2cc1ef3c7c7b | |
parent | ebc38280ce63d63e06369354cc0e95e99e846135 [diff] |
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.