Re: [PATCH] libdwfl: Don't dereference possibly unaligned auxv entry pointer from core.

2017-11-24 Thread Mark Wielaard
On Mon, 2017-11-20 at 14:15 +0100, Mark Wielaard wrote: > The notes in a core file that contain the auxv entries might not be > naturally aligned. The code already tried to account for that, but > the GCC 8 undefined behaviour sanitizer found we were till dereferencing > the actual auxv entry point

[PATCH] libdwfl: Don't dereference possibly unaligned auxv entry pointer from core.

2017-11-20 Thread Mark Wielaard
The notes in a core file that contain the auxv entries might not be naturally aligned. The code already tried to account for that, but the GCC 8 undefined behaviour sanitizer found we were till dereferencing the actual auxv entry pointer directly. Fix this by calculating all pointers by hand and no