]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/pretty-print.c
PR c/81859 - [8 Regression] valgrind error from warn_about_normalization
authorMartin Sebor <msebor@redhat.com>
Thu, 17 Aug 2017 16:50:06 +0000 (16:50 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 17 Aug 2017 16:50:06 +0000 (10:50 -0600)
commit86ef85d3f7e790e2bbace497fe55ca93d99dad32
tree0ac480a59d309d6f4974999384db866f4ad37bbe
parentf8c770ddb4b5499780a5e2d58c861a9c903cdd29
PR c/81859 - [8 Regression] valgrind error from warn_about_normalization

gcc/ChangeLog:

PR c/81859
* pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
past the end of an array.
(test_pp_format): Add test cases.

From-SVN: r251157
gcc/ChangeLog
gcc/pretty-print.c