Commit 385d061b by Zack Weinberg Committed by Zack Weinberg

* cpplib.c (_cpp_parse_assertion): Fix buffer overrun.

From-SVN: r34872
parent dca888c4
2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
2000-07-04 Zack Weinberg <zack@wolery.cumb.org> 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
* cpplex.c: Don't include sys/mman.h. * cpplex.c: Don't include sys/mman.h.
......
...@@ -1322,8 +1322,8 @@ _cpp_parse_assertion (pfile, answerp) ...@@ -1322,8 +1322,8 @@ _cpp_parse_assertion (pfile, answerp)
lookup_node: lookup_node:
*answerp = answer; *answerp = answer;
len = predicate->val.name.len + 1; len = predicate->val.name.len;
sym = alloca (len); sym = alloca (len + 1);
/* Prefix '#' to get it out of macro namespace. */ /* Prefix '#' to get it out of macro namespace. */
sym[0] = '#'; sym[0] = '#';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment