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)
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

index ff8dac4edddb1f7408e03957a2563faa2bc17126..ff83dea5aae9c561dfa80bedd670b0c00055f113 100644 (file)
@@ -5,6 +5,16 @@
        that we correctly handle column numbers greater than
        LINE_MAP_MAX_COLUMN_NUMBER.
 
+2017-01-10  Martin Sebor  <msebor@redhat.com>
+
+       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.
+
 2017-01-10  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/78775
index 59a2fcfbef4242476df2f3cfccb42ec374a05c04..6fdfcacafebd540c8d53f78316648579079907bb 100644 (file)
@@ -3,6 +3,11 @@
        PR c++/77949
        * g++.dg/diagnostic/pr77949.C: New test case.
 
+2017-01-10  Martin Sebor  <msebor@redhat.com>
+
+       PR middle-end/78245
+       * gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Add tests.
+
 2017-01-10  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/78775