Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 14 Dec 2016 22:01:59 -0600
From: "A. Wilcox" <awilfox@...lielinux.org>
To: musl@...ts.openwall.com
Subject: Re: Handling of L and ll prefixes different from glibc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 14/12/16 20:30, Rich Felker wrote:
> It's true that some programs which are just misusing printf format 
> specifiers as part of unnecessary status/debug/junk output will
> fully work now, despite having UB, and that they would stop working
> with such a change. But in most cases, the lack of output now, even
> if it's unnoticed, is a bug that could have serious consequences.
> For example missing output in text that's parsed and used in a
> script can lead to things like rm -rf'ing the wrong directory. So I
> tend to think always failing hard and catching the bug is
> preferable.

Yeah, I can understand that.  Just makes me nervous as a package
maintainer is all :)

> BTW I wonder if gcc's -Wformat catches these errors.

It is meant to.  I know that clang whines loudly on mismatched format
specifiers, and I seem to recall it even whines on format specifiers
that don't exist, but it has been a while since I checked GCC's.

- --arw

- -- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYUhWyAAoJEMspy1GSK50UX9QP/0EhqwhljRAm3yY5Glhl2emt
R0FtBYsHHDhnqkjPJ4AWV3z6eVCPb2nd9RZYGpj778rFl/nOijfR8ilzUL7sKYGJ
KXiBx5N0cOWpm75RWGKwvAEEkoC4zqQZ4HbyK13RzWdO6rJPieb137UW7sKw+S7C
I7S4PRbd09pBd9Uk1smDEEknbLxDwUbARJaFOuChzzGgZU0AOfnSg7FgOGEPv+va
1dBB98gIAcMkhSOy3xBZsMZWr0frpXiym119Y2IHP56xkoIQGN585ChluEWa54tt
pHEXYsDIT5ZOMMdZqIbllI3mFILopZ3PalrBiLTKwqqnAyhkRyZNWTTTxtdm7aNx
iARmCXupxk1boNYjBcsQhc25EZg6tRUebHveSKfoDxKALRu+YGtEcWg+um/29L78
Jz1G4D9nAExoUVBKGkxxG6VlTEUBdmVd6pCWdm08GzX0QJaq0aA1KBK+0lexDluV
eqZfG+J40bwWhFuI3hNpKy46UHs+mDPgGPzCaGWupMAYaYLAo5UCnMqIAOSFMWed
hwwNlwUCA8hwjXcq6nsWa3B2lIt5LmioAfZQ4+8WtiEfU5Kwzjw66olSF1uwdNMh
q4g7Sju81oUOWEFId7Dy+zBah5XZt+nyRL/6QSob9WKz5hXb30WZinHH6M+m1z4F
RAPqzt4nfGqMhRfBY2vL
=5CdV
-----END PGP SIGNATURE-----

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.