1*a939078aSHiroo HAYASHI# Suppress a valgrind message about use of uninitialized memory in memchr(). 2*a939078aSHiroo HAYASHI 3*a939078aSHiroo HAYASHI# Copyright (C) 2009-2021 Free Software Foundation, Inc. 4*a939078aSHiroo HAYASHI# 5*a939078aSHiroo HAYASHI# This file is free software: you can redistribute it and/or modify 6*a939078aSHiroo HAYASHI# it under the terms of the GNU Lesser General Public License as 7*a939078aSHiroo HAYASHI# published by the Free Software Foundation; either version 2.1 of the 8*a939078aSHiroo HAYASHI# License, or (at your option) any later version. 9*a939078aSHiroo HAYASHI# 10*a939078aSHiroo HAYASHI# This file is distributed in the hope that it will be useful, 11*a939078aSHiroo HAYASHI# but WITHOUT ANY WARRANTY; without even the implied warranty of 12*a939078aSHiroo HAYASHI# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*a939078aSHiroo HAYASHI# GNU Lesser General Public License for more details. 14*a939078aSHiroo HAYASHI# 15*a939078aSHiroo HAYASHI# You should have received a copy of the GNU Lesser General Public License 16*a939078aSHiroo HAYASHI# along with this program. If not, see <https://www.gnu.org/licenses/>. 17*a939078aSHiroo HAYASHI 18*a939078aSHiroo HAYASHI# POSIX states that when the character is found, memchr must not read extra 19*a939078aSHiroo HAYASHI# bytes in an overestimated length (for example, where memchr is used to 20*a939078aSHiroo HAYASHI# implement strnlen). However, we use a safe word read to provide a speedup. 21*a939078aSHiroo HAYASHI{ 22*a939078aSHiroo HAYASHI memchr-value4 23*a939078aSHiroo HAYASHI Memcheck:Value4 24*a939078aSHiroo HAYASHI fun:rpl_memchr 25*a939078aSHiroo HAYASHI} 26*a939078aSHiroo HAYASHI{ 27*a939078aSHiroo HAYASHI memchr-value8 28*a939078aSHiroo HAYASHI Memcheck:Value8 29*a939078aSHiroo HAYASHI fun:rpl_memchr 30*a939078aSHiroo HAYASHI} 31