annotate lib/memchr.valgrind @ 425:67815606c5d9 3.0-beta2

Prevent NULL deref in lw_expr_destroy
author lost@l-w.ca
date Sun, 19 Sep 2010 10:27:47 -0600
parents 3c2e1f24cc7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
421
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
1 # Suppress a valgrind message about use of uninitialized memory in memchr().
3c2e1f24cc7d Added 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
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
3 # bytes in an overestimated length (for example, where memchr is used to
3c2e1f24cc7d Added 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.
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
5 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
6 memchr-value4
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
7 Memcheck:Value4
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
8 fun:rpl_memchr
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
9 }
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
10 {
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
11 memchr-value8
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
12 Memcheck:Value8
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
13 fun:rpl_memchr
3c2e1f24cc7d Added generated files for release
lost@l-w.ca
parents:
diff changeset
14 }