Commit 1b955cba by Zack Weinberg Committed by Zack Weinberg

cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it to offset * 2.

	* cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
	to offset * 2.

From-SVN: r33183
parent 5ead1006
2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
* cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
to offset * 2.
* cpplex.c (output_line_command): Remove debugging prints.
(cpp_output_tokens): Don't write out a zero-length buffer or
try to see if it has a newline in it.
......
......@@ -1651,7 +1651,7 @@ _cpp_read_and_prescan (pfile, fp, desc, len)
{
size_t delta_op;
size_t delta_line_base;
len *= 2;
len = offset * 2;
if (offset > len)
/* len overflowed.
This could happen if the file is larger than half the
......
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