PR diagnostic/68899: fix read-beyond-buffer when printing very wide source lines
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Jan 2016 04:38:19 +0000 (04:38 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Jan 2016 04:38:19 +0000 (04:38 +0000)
commit12634056143af6f7826389344e4b5ee4c1dddbd5
tree45f7f5e67a67ee9f4da14fefddd832d74c8c746c
parent90153ae7a49d973b19f81271ef19404344536e5c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232465 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/diagnostic-show-locus.c