Re: [PATCH] Fix uninitialized variable with ubsan on ARM (PR sanitizer/66977)

2015-07-31 Thread Marek Polacek
On Tue, Jul 28, 2015 at 03:13:41PM +0200, Marek Polacek wrote: > This fixes a problem where on ARM ubsan can introduce an uninitialized > variable. > It's ARM only since the ARM C++ ABI says that when creating a pointer to > member > function, the LSB of ptr discriminates between the address of a

[PATCH] Fix uninitialized variable with ubsan on ARM (PR sanitizer/66977)

2015-07-28 Thread Marek Polacek
This fixes a problem where on ARM ubsan can introduce an uninitialized variable. It's ARM only since the ARM C++ ABI says that when creating a pointer to member function, the LSB of ptr discriminates between the address of a non-virtual member function and the offset in the class's virtual table o