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:
parent
6a26ea58f6
commit
1e39a15138
|
@ -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>
|
2005-08-07 Janne Blomqvist <jblomqvi@cc.hut.fi>
|
||||||
|
|
||||||
PR fortran/22390
|
PR fortran/22390
|
||||||
|
|
|
@ -882,7 +882,7 @@ preprocessor_line (char *c)
|
||||||
|
|
||||||
/* Get flags. */
|
/* Get flags. */
|
||||||
|
|
||||||
flag[1] = flag[2] = flag[3] = flag[4] = flag[5] = false;
|
flag[1] = flag[2] = flag[3] = flag[4] = false;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue