diff options
author | Qing Zhao <qing.zhao@oracle.com> | 2024-05-28 18:37:14 +0000 |
---|---|---|
committer | Qing Zhao <qing.zhao@oracle.com> | 2024-05-31 16:44:01 +0000 |
commit | 3d94fee616d6132075f3292a6eafdcb7b1d3f5a5 (patch) | |
tree | 484b454b84a0adb7f03734571c4cf0e47395bfc4 /gcc/cp/module.cc | |
parent | 6f17933548fc34ee269e90546a590df8269cee60 (diff) | |
download | gcc-3d94fee616d6132075f3292a6eafdcb7b1d3f5a5.zip gcc-3d94fee616d6132075f3292a6eafdcb7b1d3f5a5.tar.gz gcc-3d94fee616d6132075f3292a6eafdcb7b1d3f5a5.tar.bz2 |
Use the .ACCESS_WITH_SIZE in bound sanitizer.
gcc/c-family/ChangeLog:
* c-ubsan.cc (get_bound_from_access_with_size): New function.
(ubsan_instrument_bounds): Handle call to .ACCESS_WITH_SIZE.
gcc/testsuite/ChangeLog:
* gcc.dg/ubsan/flex-array-counted-by-bounds-2.c: New test.
* gcc.dg/ubsan/flex-array-counted-by-bounds-3.c: New test.
* gcc.dg/ubsan/flex-array-counted-by-bounds-4.c: New test.
* gcc.dg/ubsan/flex-array-counted-by-bounds.c: New test.
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions