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

Mark Wielaard mark@klomp.org
Fri Nov 24 12:42:00 GMT 2017

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 pointer directly. Fix this by calculating all pointers
> by hand and not use an array of auxv entries trick.
> This makes make distcheck (which enables sanitize-undefined by default)
> pass again using GCC8.

Pushed this to master now.

More information about the Elfutils-devel mailing list