view lib/memchr.valgrind @ 40183:9301e0f7fe60

libtextstyle: New module. * m4/libtextstyle.m4: New file. * modules/libtextstyle: New file.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Feb 2019 12:49:39 +0100
parents dfac57b1ec9f
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
}