[cfe-commits] [Patch] -Wformat: warn about using length modifiers with %n

Hans Wennborg hans at chromium.org
Wed Aug 1 06:43:40 PDT 2012

Hi all,

As far as I know, using any length modifier with %n is undefined
behavior. For some reason, Clang doesn't think so, but that's probably
unintentional? The attached patch makes Clang warn about it.

Please take a look.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wformat_n_length_modifiers.patch
Type: application/octet-stream
Size: 2949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120801/a74618d2/attachment.obj>

More information about the cfe-commits mailing list