diff options
author | Martin Sebor <msebor@redhat.com> | 2018-10-03 20:00:46 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-10-03 14:00:46 -0600 |
commit | a41cc59de4134194fc2e96beb12cf18737da3cee (patch) | |
tree | 0988b94c4dbe58784462cbb8759f7fce187de973 /libgcc/libgcc2.c | |
parent | 119b4963ea4f68e88eb496f0efcb450e1fbbbe9b (diff) | |
download | gcc-a41cc59de4134194fc2e96beb12cf18737da3cee.zip gcc-a41cc59de4134194fc2e96beb12cf18737da3cee.tar.gz gcc-a41cc59de4134194fc2e96beb12cf18737da3cee.tar.bz2 |
gimple-ssa-sprintf.c (struct fmtresult): Add new member and initialize it.
* gimple-ssa-sprintf.c (struct fmtresult): Add new member and
initialize it.
(get_string_length): Detect unterminated arrays.
(format_string): Same.
(format_directive): Warn about unterminated arrays.
(handle_gimple_call): Mark statements with no_warning as needed.
* gcc.dg/warn-sprintf-no-nul.c: New test.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r264822
Diffstat (limited to 'libgcc/libgcc2.c')
0 files changed, 0 insertions, 0 deletions