~ubuntu-branches/ubuntu/natty/diffutils/natty

« back to all changes in this revision

Viewing changes to lib/memchr.valgrind

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-05-04 20:38:00 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100504203800-f67xd9rsa9xl9qqj
Tags: 1:3.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Suppress a valgrind message about use of uninitialized memory in memchr().
 
2
# POSIX states that when the character is found, memchr must not read extra
 
3
# bytes in an overestimated length (for example, where memchr is used to
 
4
# implement strnlen).  However, we use a safe word read to provide a speedup.
 
5
{
 
6
    memchr-value4
 
7
    Memcheck:Value4
 
8
    fun:rpl_memchr
 
9
}
 
10
{
 
11
    memchr-value8
 
12
    Memcheck:Value8
 
13
    fun:rpl_memchr
 
14
}