[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

[COMMITTED] tests: Don't printf a known NULL symname.

2019-04-30 Thread Mark Wielaard
GCC9 on 32bit systems might warn about '%s' directive argument is null for symname in backtrace.c. Just check whether symname is NULL. Signed-off-by: Mark Wielaard --- tests/ChangeLog | 4 tests/backtrace.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Change

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

2019-04-30 Thread Mark Wielaard
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 the rest of the ELF Note unconverted. > In the case were we just had en