Mercurial > hg-old > index.cgi
view lib/memchr.valgrind @ 425:67815606c5d9 3.0-beta2
Prevent NULL deref in lw_expr_destroy
author | lost@l-w.ca |
---|---|
date | Sun, 19 Sep 2010 10:27:47 -0600 |
parents | 3c2e1f24cc7d |
children |
line wrap: on
line source
# Suppress a valgrind message about use of uninitialized memory in memchr(). # POSIX states that when the character is found, memchr must not read extra # bytes in an overestimated length (for example, where memchr is used to # implement strnlen). However, we use a safe word read to provide a speedup. { memchr-value4 Memcheck:Value4 fun:rpl_memchr } { memchr-value8 Memcheck:Value8 fun:rpl_memchr }