]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR bootstrap/55380 (All search_line_fast implementations read beyond buffer)
authorJakub Jelinek <jakub@redhat.com>
Mon, 3 Dec 2012 17:19:47 +0000 (18:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Dec 2012 17:19:47 +0000 (18:19 +0100)
commitf41e5bd19ddc48d291b01a270623c379568d325d
tree0631b731076c534491f883f189109e95a9bd12d4
parent36402bb1864531f22acc9c3ef2403e1d3cddfc65
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
libcpp/ChangeLog
libcpp/charset.c
libcpp/files.c