453ce8642b
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.
5 lines
165 B
Plaintext
5 lines
165 B
Plaintext
../a.out: syntax error at source line 1 source file pfile-overflow.awk
|
|
context is
|
|
>>> <<<
|
|
../a.out: bailing out at source line 1 source file pfile-overflow.awk
|