Date: Tue, 02 Jan 2024 22:15:54 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276043] md5(1) et al are broken when reading the last argument because of capsicum(4) code Message-ID: <bug-276043-227-ln68ntK6vh@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-276043-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=276043 --- Comment #5 from Ricardo Branco <rbranco@suse.com> --- (In reply to Ricardo Branco from comment #4) wc(1) also fails because of capsicum as this patch is not enough: ``` - if (S_ISREG(sb.st_mode)) { + /* Don't do it on pseudo-filesystems that advertize a zero size */ + if (S_ISREG(sb.st_mode) && sb.st_size > 0) { ``` It now returns the result of a truncated read: ``` $ /usr/obj/usr/src/amd64.amd64/usr.bin/wc/wc -m /compat/linux/proc/cpuinfo 3549 /compat/linux/proc/cpuinfo ``` -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276043-227-ln68ntK6vh>
