[Bug other/68899] [6 Regression] Invalid read of size: 3 occurences in get_line_width_without_trailing_whitespace (diagnostic-show-locus.c:413)
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 16 04:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68899
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Sat Jan 16 04:38:19 2016
New Revision: 232465
URL: https://gcc.gnu.org/viewcvs?rev=232465&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic-show-locus.c
More information about the Gcc-bugs
mailing list