[cfe-commits] [Patch] -Wformat: warn about using length modifiers with %n
hans at chromium.org
Thu Aug 2 10:35:29 PDT 2012
On Thu, Aug 2, 2012 at 6:31 PM, Ted Kremenek <kremenek at apple.com> wrote:
> C99 says you can use %n with the length modifiers 'hh', 'h', 'l', 'j', 'z', and 't'.
My apologies, apparently I can't read. I'll update the patch.
> On Aug 1, 2012, at 6:43 AM, Hans Wennborg <hans at chromium.org> wrote:
>> 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.
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
More information about the cfe-commits