diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-12-03 18:19:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-12-03 18:19:47 +0100 |
commit | f41e5bd19ddc48d291b01a270623c379568d325d (patch) | |
tree | 0631b731076c534491f883f189109e95a9bd12d4 /gcc | |
parent | 36402bb1864531f22acc9c3ef2403e1d3cddfc65 (diff) | |
download | gcc-f41e5bd19ddc48d291b01a270623c379568d325d.zip gcc-f41e5bd19ddc48d291b01a270623c379568d325d.tar.gz gcc-f41e5bd19ddc48d291b01a270623c379568d325d.tar.bz2 |
re PR bootstrap/55380 (All search_line_fast implementations read beyond buffer)
PR bootstrap/55380
PR other/54691
* files.c (read_file_guts): Allocate extra 16 bytes instead of
1 byte at the end of buf. Pass size + 16 instead of size
to _cpp_convert_input.
* charset.c (_cpp_convert_input): Reallocate if there aren't
at least 16 bytes beyond to.len in the buffer. Clear 16 bytes
at to.text + to.len.
From-SVN: r194102
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions