Re: [PATCH] libelf: If xlate can only convert the ELF note header, just do that.

2019-05-04 Thread Mark Wielaard
On Wed, May 01, 2019 at 12:04:17AM +0200, Mark Wielaard wrote: > On Tue, Apr 30, 2019 at 01:24:48PM +0200, Mark Wielaard wrote: > > When we started parsing new style ELF_T_NHDR8 notes we added extra > > checks on alignment and padding. When those failed we would stop > > converting and just return

Re: [PATCH] libelf: If xlate can only convert the ELF note header, just do that.

2019-04-30 Thread Mark Wielaard
at things keep working even if the len is slightly larger than just the ELF Note header, but one of the alignment or padding sanity checks fails. >From 28b5f578ae772bb2404c3847e4e22ad1c407af54 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 30 Apr 2019 13:00:17 +0200 Subject: [PATCH] li

[PATCH] libelf: If xlate can only convert the ELF note header, just do that.

2019-04-30 Thread Mark Wielaard
When we started parsing new style ELF_T_NHDR8 notes we added extra checks on alignment and padding. When those failed we would stop converting and just return the rest of the ELF Note unconverted. In the case were we just had enough data for just the ELF Note header and the destionation and source