xref: /dflybsd-src/contrib/grep/lib/memchr2.valgrind (revision 91b9ed38d3db6a8a8ac5b66da1d43e6e331e259a)
1680a9cb8SJohn Marino# Suppress a valgrind message about use of uninitialized memory in memchr2().
2*09d4459fSDaniel Fojt
3*09d4459fSDaniel Fojt# Copyright (C) 2009-2020 Free Software Foundation, Inc.
4*09d4459fSDaniel Fojt#
5*09d4459fSDaniel Fojt# This program is free software: you can redistribute it and/or modify
6*09d4459fSDaniel Fojt# it under the terms of the GNU General Public License as published by
7*09d4459fSDaniel Fojt# the Free Software Foundation; either version 3 of the License, or
8*09d4459fSDaniel Fojt# (at your option) any later version.
9*09d4459fSDaniel Fojt#
10*09d4459fSDaniel Fojt# This program is distributed in the hope that it will be useful,
11*09d4459fSDaniel Fojt# but WITHOUT ANY WARRANTY; without even the implied warranty of
12*09d4459fSDaniel Fojt# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*09d4459fSDaniel Fojt# GNU General Public License for more details.
14*09d4459fSDaniel Fojt#
15*09d4459fSDaniel Fojt# You should have received a copy of the GNU General Public License
16*09d4459fSDaniel Fojt# along with this program.  If not, see <https://www.gnu.org/licenses/>.
17*09d4459fSDaniel Fojt
18680a9cb8SJohn Marino# Like memchr, it is safe to overestimate the length when the terminator
19680a9cb8SJohn Marino# is guaranteed to be found.  In this case, we may end up reading a word
20680a9cb8SJohn Marino# that is partially uninitialized, but this use is OK for a speedup.
21680a9cb8SJohn Marino{
22680a9cb8SJohn Marino    memchr2-value4
23680a9cb8SJohn Marino    Memcheck:Value4
24680a9cb8SJohn Marino    fun:memchr2
25680a9cb8SJohn Marino}
26680a9cb8SJohn Marino{
27680a9cb8SJohn Marino    memchr2-value8
28680a9cb8SJohn Marino    Memcheck:Value8
29680a9cb8SJohn Marino    fun:memchr2
30680a9cb8SJohn Marino}
31