memchr.valgrind 1.1 KB

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