diff options
author | Martin Sebor <msebor@redhat.com> | 2016-12-15 04:35:31 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2016-12-14 21:35:31 -0700 |
commit | 2c8c83ac7737c58b5f34a277142b9a1efaf27534 (patch) | |
tree | 027946fe285d26835aee90e1372257c41e6f4748 /gcc/tree-parloops.c | |
parent | 1750f2a55a7f17c557fa591691a15c363181fa80 (diff) | |
download | gcc-2c8c83ac7737c58b5f34a277142b9a1efaf27534.zip gcc-2c8c83ac7737c58b5f34a277142b9a1efaf27534.tar.gz gcc-2c8c83ac7737c58b5f34a277142b9a1efaf27534.tar.bz2 |
PR middle-end/78519 - missing warning for sprintf %s with null pointer
gcc/ChangeLog:
PR middle-end/78519
* gimple-ssa-sprintf.c (format_string): Handle null pointers.
(format_directive): Diagnose null pointer arguments.
(pass_sprintf_length::handle_gimple_call): Diagnose null destination
pointers. Correct location of null format string in diagnostics.
gcc/testsuite/ChangeLog:
PR middle-end/78519
* gcc.dg/tree-ssa/builtin-sprintf-warn-7.c: New test.
From-SVN: r243684
Diffstat (limited to 'gcc/tree-parloops.c')
0 files changed, 0 insertions, 0 deletions