[Bug 288321] memrchr function can be very slow
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 288321] memrchr function can be very slow"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Jul 2025 12:43:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288321
--- Comment #2 from Andriy Gapon <avg@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #1)
The first argument does not have to be a string ("C-string") despite what our
manual page says.
IMO, it's a responsibility of a programmer to ensure that len parameter is
within the searched object (same as with, e.g., memcpy).
https://pubs.opengroup.org/onlinepubs/009696799/functions/memchr.html
--
You are receiving this mail because:
You are the assignee for the bug.