Re: [PATCH] Fix -fsanitize-use-after-scope on big-endian (PR sanitizer/80308)

2017-04-05 Thread Richard Biener
On April 5, 2017 12:01:37 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >When asan unpoisons variables that don't have byte sizes that are >multiples >of 8, it on big endian stores the last chunk size value into the first >byte >rather than last byte, so e.g. for the variable of size 12 bytes in the >

[PATCH] Fix -fsanitize-use-after-scope on big-endian (PR sanitizer/80308)

2017-04-05 Thread Jakub Jelinek
Hi! When asan unpoisons variables that don't have byte sizes that are multiples of 8, it on big endian stores the last chunk size value into the first byte rather than last byte, so e.g. for the variable of size 12 bytes in the testcase it stores half-word 0x0400 into the shadow memory, which is f