diff options
| author | Martin Sebor <msebor@redhat.com> | 2020-09-01 16:02:19 -0600 |
|---|---|---|
| committer | Martin Sebor <msebor@redhat.com> | 2020-09-01 16:03:25 -0600 |
| commit | 0c344a649d803a83ed35f629d292b98143935ffa (patch) | |
| tree | 069c12b4eb9f1263b68f13d0a2027908cb58204f /libcpp/files.c | |
| parent | b1c59b31ef7adc832405209e9e2a77212284abd7 (diff) | |
| download | gcc-0c344a649d803a83ed35f629d292b98143935ffa.zip gcc-0c344a649d803a83ed35f629d292b98143935ffa.tar.gz gcc-0c344a649d803a83ed35f629d292b98143935ffa.tar.bz2 | |
Use the determined lower bound of the range of offsets in a PLUS_EXPR.
gcc/ChangeLog:
* builtins.c (compute_objsize): Only replace the upper bound
of a POINTER_PLUS offset when it's less than the lower bound.
gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-overflow.c: Remove xfails.
* gcc.dg/Wstringop-overflow-42.c: New test.
* gcc.dg/Wstringop-overread-4.c: New test.
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions
