re PR preprocessor/77699 (suspicious code in get_next_line)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 3 Oct 2016 14:05:46 +0000 (14:05 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Mon, 3 Oct 2016 14:05:46 +0000 (14:05 +0000)
commit1adae327479aaff6d8020d9df6e401b7075c5672
treebf3d97cb2d5979631ce86c0a5481f6a726caf672
parentd07b0a23a5b00c9f51ff052f60c911013f036a7c
re PR preprocessor/77699 (suspicious code in get_next_line)

2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR preprocessor/77699
        * input.c (maybe_grow): Don't allocate one byte extra headroom.
        (get_next_line): Return false on error.
        (read_next_line): Removed, use get_next_line instead.
        (read_line_num): Don't copy the line.
        (location_get_source_line): Don't use static data.
        (selftest::test_reading_source_line): Add more test cases.

From-SVN: r240713
gcc/ChangeLog
gcc/input.c