Date: Sat, 17 Jan 2026 05:32:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 292528] strlcpy truncates result Message-ID: <bug-292528-227-f2nHWpDR4u@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-292528-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292528 Simon Wollwage <rootnode+freebsd@wollwage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rootnode+freebsd@wollwage.c | |om --- Comment #2 from Simon Wollwage <rootnode+freebsd@wollwage.com> --- I think because in that example, src and dst are both pointing to the same list, you might run into undefined behavior there. The implementation of strlcpy is the same on 13.1 and 14.3 (https://github.com/freebsd/freebsd-src/blob/releng/13.1/lib/libc/string/strlcpy.c and https://github.com/freebsd/freebsd-src/blob/releng/14.3/lib/libc/string/strlcpy.c) My best guess is that the different LLVM versions might optimize the copying differently, resulting in the UB. -- 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-292528-227-f2nHWpDR4u>
