memchr.valgrind 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Suppress a valgrind message about use of uninitialized memory in memchr().
  2. # Copyright (C) 2009-2023 Free Software Foundation, Inc.
  3. #
  4. # This file is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU Lesser General Public License as
  6. # published by the Free Software Foundation; either version 2.1 of the
  7. # License, or (at your option) any later version.
  8. #
  9. # This file 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 Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser 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. }