aboutsummaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2020-07-29 12:31:29 -0600
committerGitHub <noreply@github.com>2020-07-29 21:31:29 +0300
commit453ce8642b69943dee03e89fb7666a80f7c84bcf (patch)
tree901f4efb808fbae87fbd676823d190e14cb28b1c /lex.c
parente22bb7c625df14ad8c9195124ed99cc41d7dfcd2 (diff)
downloadone-true-awk-453ce8642b69943dee03e89fb7666a80f7c84bcf.tar.gz
Avoid accessing pfile[] out of bounds on syntax error at EOF. (#90)
When awk reaches EOF parsing the program file, curpfile is incremented. However, cursource() uses curpfile without checking it against npfile which can cause an out of bounds access of pfile[] if there is a syntax error at the end of the program file.
Diffstat (limited to 'lex.c')
0 files changed, 0 insertions, 0 deletions