mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-14 04:26:59 +08:00
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
This commit is contained in:
parent
5ead1006da
commit
1b955cbad5
@ -1,5 +1,8 @@
|
|||||||
2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
|
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.
|
* cpplex.c (output_line_command): Remove debugging prints.
|
||||||
(cpp_output_tokens): Don't write out a zero-length buffer or
|
(cpp_output_tokens): Don't write out a zero-length buffer or
|
||||||
try to see if it has a newline in it.
|
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_op;
|
||||||
size_t delta_line_base;
|
size_t delta_line_base;
|
||||||
len *= 2;
|
len = offset * 2;
|
||||||
if (offset > len)
|
if (offset > len)
|
||||||
/* len overflowed.
|
/* len overflowed.
|
||||||
This could happen if the file is larger than half the
|
This could happen if the file is larger than half the
|
||||||
|
Loading…
Reference in New Issue
Block a user