scanner.c (preprocessor_line): Don't write beyond the end of flag buffer.

* scanner.c (preprocessor_line): Don't write beyond the end of flag
	buffer.

From-SVN: r102902
This commit is contained in:
Jakub Jelinek 2005-08-09 10:08:28 +02:00 committed by Jakub Jelinek
parent 6a26ea58f6
commit 1e39a15138
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-09 Jakub Jelinek <jakub@redhat.com>
* scanner.c (preprocessor_line): Don't write beyond the end of flag
buffer.
2005-08-07 Janne Blomqvist <jblomqvi@cc.hut.fi>
PR fortran/22390

View File

@ -882,7 +882,7 @@ preprocessor_line (char *c)
/* Get flags. */
flag[1] = flag[2] = flag[3] = flag[4] = flag[5] = false;
flag[1] = flag[2] = flag[3] = flag[4] = false;
for (;;)
{