PR middle-end/78245 - missing -Wformat-length on an overflow of a dynamically allocat...
authorMartin Sebor <msebor@gcc.gnu.org>
Tue, 10 Jan 2017 21:54:15 +0000 (14:54 -0700)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 10 Jan 2017 21:54:15 +0000 (14:54 -0700)
commiteb07c7cffb2ca361e793281ca142b2f8063aa0e1
tree082ec7518c01c45d3ae0445135abb05700e30116
parentb9f4757f8eb94d4b145613ee5047f3f95452f9d2
PR middle-end/78245 - missing -Wformat-length on an overflow of a dynamically allocated buffer

gcc/testsuite/ChangeLog:

PR middle-end/78245
* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Add tests.

gcc/ChangeLog:

PR middle-end/78245
* gimple-ssa-sprintf.c (get_destination_size): Call
{init,fini}object_sizes.
* tree-object-size.c (addr_object_size): Adjust.
(pass_through_call): Adjust.
(pass_object_sizes::execute): Adjust.
* tree-object-size.h (fini_object_sizes): Declare.

From-SVN: r244293
gcc/gimple-ssa-sprintf.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-3.c
gcc/tree-object-size.c
gcc/tree-object-size.h