Blame gl/memchr.valgrind

Packit aea12f
# Suppress a valgrind message about use of uninitialized memory in memchr().
Packit aea12f
Packit Service 991b93
# Copyright (C) 2009-2020 Free Software Foundation, Inc.
Packit aea12f
#
Packit aea12f
# This program is free software: you can redistribute it and/or modify
Packit Service 991b93
# it under the terms of the GNU Lesser General Public License as published by
Packit Service 991b93
# the Free Software Foundation; either version 2.1 of the License, or
Packit aea12f
# (at your option) any later version.
Packit aea12f
#
Packit aea12f
# This program is distributed in the hope that it will be useful,
Packit aea12f
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 991b93
# GNU Lesser General Public License for more details.
Packit aea12f
#
Packit Service 991b93
# You should have received a copy of the GNU Lesser General Public License
Packit aea12f
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
Packit aea12f
Packit aea12f
# POSIX states that when the character is found, memchr must not read extra
Packit aea12f
# bytes in an overestimated length (for example, where memchr is used to
Packit aea12f
# implement strnlen).  However, we use a safe word read to provide a speedup.
Packit aea12f
{
Packit aea12f
    memchr-value4
Packit aea12f
    Memcheck:Value4
Packit aea12f
    fun:rpl_memchr
Packit aea12f
}
Packit aea12f
{
Packit aea12f
    memchr-value8
Packit aea12f
    Memcheck:Value8
Packit aea12f
    fun:rpl_memchr
Packit aea12f
}