[PATCH] Fix memory leak in printf_positional

Andreas Schwab schwab@suse.de
Wed Sep 2 07:07:00 GMT 2015


Paul Pluzhnikov <ppluzhnikov@google.com> writes:

> However, I was able to use
>
>   "%1$s %s %s ..."
>
> if I disable -Wformat for the test.

You should probably add a comment that you are relying on undefined
behaviour here.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Libc-alpha mailing list