diff options
author | Martin Sebor <msebor@redhat.com> | 2017-04-11 16:35:34 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2017-04-11 10:35:34 -0600 |
commit | 3812f460464251b944255065422bd2755efad659 (patch) | |
tree | 17927665a105191963a2ff79345d192d5106c03e /gcc/alias.c | |
parent | b1c0468f72b1f155419a5cb648609a03f2c37d2d (diff) | |
download | gcc-3812f460464251b944255065422bd2755efad659.zip gcc-3812f460464251b944255065422bd2755efad659.tar.gz gcc-3812f460464251b944255065422bd2755efad659.tar.bz2 |
PR middle-end/80364 - sanitizer detects signed integer overflow in gimple-ssa-sprintf.c
gcc/ChangeLog:
PR middle-end/80364
* gimple-ssa-sprintf.c (get_int_range): Remove second argument and
always use the int type. Use INTEGRAL_TYPE_P() rather than testing
for INTEGER_TYPE.
(directive::set_width, directive::set_precision, format_character):
Adjust.
(parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
INTEGER_TYPE.
gcc/testsuite/ChangeLog:
PR middle-end/80364
* gcc.dg/tree-ssa/builtin-sprintf-warn-16.c: New test.
From-SVN: r246846
Diffstat (limited to 'gcc/alias.c')
0 files changed, 0 insertions, 0 deletions