re PR sanitizer/62089 (Sanitizer may fail to instrument struct accesses)
authorYury Gribov <y.gribov@samsung.com>
Mon, 18 Aug 2014 08:23:47 +0000 (08:23 +0000)
committerYury Gribov <ygribov@gcc.gnu.org>
Mon, 18 Aug 2014 08:23:47 +0000 (08:23 +0000)
commit87d1d65af7ebef1ca7240bbd25f3cd6873b1455a
tree160aeb5c4f22a3043b40b7f8eeebe93c37cac94f
parent495e77b35b09f0ff8d347bceb06deaa2dc72602b
re PR sanitizer/62089 (Sanitizer may fail to instrument struct accesses)

2014-08-18  Yury Gribov  <y.gribov@samsung.com>

PR sanitizer/62089

gcc/
* asan.c (instrument_derefs): Fix bitfield check.

gcc/testsuite/
* c-c++-common/asan/pr62089.c: New test.
* c-c++-common/asan/bitfield-1.c: New test.
* c-c++-common/asan/bitfield-2.c: New test.
* c-c++-common/asan/bitfield-3.c: New test.
* c-c++-common/asan/bitfield-4.c: New test.

From-SVN: r214086
gcc/ChangeLog
gcc/asan.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/bitfield-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/bitfield-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/bitfield-3.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/bitfield-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/pr62089.c [new file with mode: 0644]