[Bug 293353] No overflow handling in the strnlen function
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 293353] No overflow handling in the strnlen function"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Feb 2026 07:16:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293353
Bug ID: 293353
Summary: No overflow handling in the strnlen function
Product: Base System
Version: Unspecified
Hardware: riscv
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: riscv
Assignee: riscv@FreeBSD.org
Reporter: maxim.like.python@gmail.com
I found that there is no overflow check in the strnlen function. In the code
that I was trying to run, there is a strnlen(buf, MAX_SIZE_T) expression, the
result of which on riscv differs from other architectures.
After looking at the strnlen assembly code, the lack of overflow handling
became apparent.
--
You are receiving this mail because:
You are the assignee for the bug.