]> git.ipfire.org Git - thirdparty/gcc.git/commit
ubsan: Add another testcase for [0] array in the middle of struct [PR108894]
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Mar 2023 09:49:38 +0000 (10:49 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 1 Mar 2023 09:49:38 +0000 (10:49 +0100)
commitf72c8918416f67aad907752f1892c19eda12eecb
tree1c1c88a83a60d329501f76cdab9159a84d319b87
parent520403f324a6ed8b527f39239709dd0841b992e2
ubsan: Add another testcase for [0] array in the middle of struct [PR108894]

I think it is useful to cover also this, rather than just arrays at the
flexible array member positions.

2023-03-01  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/108894
* c-c++-common/ubsan/bounds-16.c: New test.
gcc/testsuite/c-c++-common/ubsan/bounds-16.c [new file with mode: 0644]