This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libelf: Make sure elf_getdata_rawchunk returns aligned data.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 09 Jun 2015 22:52:06 +0200
- Subject: Re: [PATCH] libelf: Make sure elf_getdata_rawchunk returns aligned data.
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.