Re: Unable to use asan with XCode on Mac

2016-05-09 Thread Konstantin Serebryany
On Sun, May 8, 2016 at 10:03 AM, Amit Kumar wrote: > Hi, > I am reviving this 3 years old thread. The good news is that address > sanitizer is now officially supported by Apple in Xcode 7. > > Thanks everyone. > > Could it be a good idea to create a release build (highly

Re: UBSan suppressions on embedded system

2016-05-09 Thread Yuri Gribov
On Mon, May 9, 2016 at 10:35 AM, 'Ilya' via address-sanitizer wrote: > >> Worst case you could wrap problematic code in #ifdef >> __SANITIZE_UNDEFINED__ and provide dedicated implementation. What's >> the problem with packed stuff though? > > > Yep, but I'd

Re: UBSan suppressions on embedded system

2016-05-09 Thread 'Ilya' via address-sanitizer
> Worst case you could wrap problematic code in #ifdef > __SANITIZE_UNDEFINED__ and provide dedicated implementation. What's > the problem with packed stuff though? > Yep, but I'd like to avoid that if possible :) The packed structures cause "misaligned pointer access". -- You received

Re: UBSan suppressions on embedded system

2016-05-09 Thread 'Ilya' via address-sanitizer
Hello everybody, > Usually, ubsan-related questions get answered at llvm...@lists.llvm.org > , we we can reply too :) > first thanks for the quick responses. (We had some national holidays going on here, so my answer comes quite late - sorry for that.) fsanitize-blacklist is a