Commit bb1ec1d7 by Scott Bambrough Committed by Scott Bambrough

cpplex.c (_cpp_scan_line): Fix buffer overwrite.

2000-04-28  Scott Bambrough  <scottb@netwinder.org>

	* cpplex.c (_cpp_scan_line): Fix buffer overwrite.

From-SVN: r33514
parent d8d1d62b
2000-04-28 Scott Bambrough <scottb@netwinder.org>
* cpplex.c (_cpp_scan_line): Fix buffer overwrite.
2000-04-28 Richard Henderson <rth@cygnus.com>
* toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
......
......@@ -532,7 +532,7 @@ _cpp_scan_line (pfile, list)
if (list->tokens_used >= list->tokens_cap)
expand_token_space (list);
if (list->name_used + len >= list->name_cap)
auto_expand_name_space (list);
expand_name_space (list, list->name_used + len + 1 - list->name_cap);
if (type == CPP_MACRO)
type = CPP_NAME;
......
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