File: memchr.valgrind

package info (click to toggle)
libprelude 5.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 22,688 kB
  • sloc: ansic: 106,364; cpp: 65,981; sh: 13,078; perl: 683; makefile: 671; awk: 343; yacc: 319; lex: 177; xml: 61; python: 41
file content (14 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (496)
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
}