]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR bootstrap/55380
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Dec 2012 17:19:47 +0000 (17:19 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Dec 2012 17:19:47 +0000 (17:19 +0000)
commit8e1d1b0ccf9262454469053aa3d9eabca979a8a9
tree0631b731076c534491f883f189109e95a9bd12d4
parent9e538e2d4fd82505004d9c4ca057ec0ad050028e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194102 138bc75d-0d04-0410-961f-82ee72b054a4
libcpp/ChangeLog
libcpp/charset.c
libcpp/files.c