This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67729] -Wformat should warn for %Ns where the buffer size is known to be less than N in size
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Dec 2018 17:04:32 +0000
- Subject: [Bug c/67729] -Wformat should warn for %Ns where the buffer size is known to be less than N in size
- Auto-submitted: auto-generated
- References: <bug-67729-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67729
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Three years later, enhancement not implemented.
See
https://sourceware.org/bugzilla/show_bug.cgi?id=23490
for an example where glibc would have benefited from this enhancement.
If someone can give me a clue which source code file / function
to look at, then I'd be happy to have a look myself.