Date: Sun, 22 Feb 2026 07:16:21 +0000 From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 293353] No overflow handling in the strnlen function Message-ID: <bug-293353-40250@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293353-40250>
