------- Comment #4 from pinskia at gcc dot gnu dot org 2006-04-28 16:57 -------
This is interesting because this might be a regression as people have run with
valgrind before.
It might also be a valgrind bug.
Or maybe just an off by one bug.
Anyways changing to use strncmp is not correct here.
(size_t)(slashpos - basename) == strlen (lang_dir_names [i])
Actually wait memcmp should stop at the first different character so this is a
valgrind bug.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|memcmp reads past end of |memcmp reads past end of
|strings |strings in gengtype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27348