PR diagnostic/68899: fix read-beyond-buffer when printing very wide source lines
authorDavid Malcolm <dmalcolm@redhat.com>
Sat, 16 Jan 2016 04:38:19 +0000 (04:38 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Sat, 16 Jan 2016 04:38:19 +0000 (04:38 +0000)
commit83eb5a035858bca79d7a8ac589ae5b98fd8467c6
tree45f7f5e67a67ee9f4da14fefddd832d74c8c746c
parentec7886c19b5853d27c37cfb269f70805e4296231
PR diagnostic/68899: fix read-beyond-buffer when printing very wide source lines

gcc/ChangeLog:
PR diagnostic/68899
* diagnostic-show-locus.c (layout::print_source_line): Move x
offset of line until after call to
get_line_width_without_trailing_whitespace.

From-SVN: r232465
gcc/ChangeLog
gcc/diagnostic-show-locus.c