Date: Wed, 11 Jul 2018 21:52:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229641] /usr/bin/printf (so also internal printf in sh) ignores width and precision in %b format Message-ID: <bug-229641-227-popYFTyatG@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-229641-227@https.bugs.freebsd.org/bugzilla/> References: <bug-229641-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229641 Jilles Tjoelker <jilles@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #3 from Jilles Tjoelker <jilles@FreeBSD.org> --- This looks like a valid bug. This change should have some tests. The printf utility already has tests so adding tests for this bug seems appropriate. The copy of the format string is unnecessary as `start` is already a copy. Getting rid of it would also fix the bug that there is a memory leak if the allocation for bfmt succeeds but the allocation for p fails. (On another note, `start` can be a rather large allocation on the stack. Ideally, no space would be reserved past the specifier such as b, c, s.) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229641-227-popYFTyatG>