[PATCH] libelf: Make sure elf_getdata_rawchunk returns aligned data.

Mark Wielaard mjw at redhat.com
Tue Jun 9 20:52:06 UTC 2015


On Thu, Jun 04, 2015 at 04:31:19PM +0200, Mark Wielaard wrote:
> elf_getdata_rawchunk might return an unaligned buffer for the requested
> ELF data type. Make sure the data is also correctly aligned when using
> an mmapped file. Also add some missing alignments for ELF data types
> for __libelf_type_align (the missing types could also make elf_getdata
> to return unaligned data).

Pushed to master.


More information about the elfutils-devel mailing list