[Bug c/81859] [8 Regression] valgrind error from warn_about_normalization

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 13 17:07:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81859

--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 17:07:06 2017
New Revision: 252471

URL: https://gcc.gnu.org/viewcvs?rev=252471&root=gcc&view=rev
Log:
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.

Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/pretty-print.c


More information about the Gcc-bugs mailing list