view lib/memchr.valgrind @ 39208:7bfe1e1d4698

Fix -Wundef warning in user-included header lib/cdefs.h. * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
author Tim Rühsen <tim.ruehsen@gmx.de>
date Wed, 03 Jan 2018 11:50:07 +0100
parents 6c5905f4795b
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
}