aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnulib/memchr.valgrind
blob: 60f247e10dca1e6fc15d637edc2de0ea1ed5e23b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
}