re PR bootstrap/12490 (buffer overflow in scan-decls.c)
authorTimo Kokkonen <tjko@iki.fi>
Wed, 8 Oct 2003 12:29:27 +0000 (15:29 +0300)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 8 Oct 2003 12:29:27 +0000 (12:29 +0000)
commit10dbf393161d85616f515ceb176e550c8686bf42
tree3b7c3bc5223dc394703026186605b645907b3445
parente6e2802fa761041287343a591e94f50d75f4af06
re PR bootstrap/12490 (buffer overflow in scan-decls.c)

PR bootstrap/12490
* scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
to define the size of the extern_C_braces array.  Set it to 200.
(scan_decls): Abort when extern_C_braces_length is out-of-bounds.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r72224
gcc/ChangeLog
gcc/scan-decls.c