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:56:44 +0000 (14:56 -0700)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 10 Jan 2017 21:56:44 +0000 (14:56 -0700)
commit5a50f6bbedd904cd2d913f4d39646b3d99ed7ca4
tree54b23282a2f8def94ab1fbbde57881c883b063b4
parenteb07c7cffb2ca361e793281ca142b2f8063aa0e1
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: r244294
gcc/ChangeLog
gcc/testsuite/ChangeLog