commit | f41e5bd19ddc48d291b01a270623c379568d325d | [log] [tgz] |
---|---|---|
author | Jakub Jelinek <jakub@redhat.com> | Mon Dec 03 18:19:47 2012 +0100 |
committer | Jakub Jelinek <jakub@gcc.gnu.org> | Mon Dec 03 18:19:47 2012 +0100 |
tree | 0631b731076c534491f883f189109e95a9bd12d4 | |
parent | 36402bb1864531f22acc9c3ef2403e1d3cddfc65 [diff] |
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