This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81859] [8 Regression] valgrind error from warn_about_normalization
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Aug 2017 14:11:47 +0000
- Subject: [Bug c/81859] [8 Regression] valgrind error from warn_about_normalization
- Auto-submitted: auto-generated
- References: <bug-81859-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81859
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Yes, r251029 still needs tweaking. It needs to use strnlen(s, n) to safely
determine the length of s, not strlen(s), to avoid reading past the end of s if
it's not nul-terminated.