annotate lib/memchr.valgrind @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents b8bf63962a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
1 # Suppress a valgrind message about use of uninitialized memory in memchr().
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
2 # POSIX states that when the character is found, memchr must not read extra
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
3 # bytes in an overestimated length (for example, where memchr is used to
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
4 # implement strnlen). However, we use a safe word read to provide a speedup.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
5 {
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
6 memchr-value4
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
7 Memcheck:Value4
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
8 fun:rpl_memchr
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
9 }
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
10 {
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
11 memchr-value8
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
12 Memcheck:Value8
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
13 fun:rpl_memchr
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
14 }