Re: Handling pgoff in perf elf mmap/mmap2 elf info

2018-10-18 Thread Ulf Hermann
Consider: > 0x7fac5ec0b000 to 0x7fac5ed9a000, len = 0x18f000, offset =0 > r--p/usr/lib/libstdc++.so.6.0.25 > 0x7fac5ec94000 to 0x7fac5ed8a000, len =0xf6000, offset = 0x89000 > ---p/usr/lib/libstdc++.so.6.0.25 0x7fac5ec94000 - 0x89000 = 0x7fac5ec0b000 This i

[PATCH] arlib: Check that sh_entsize isn't zero.

2018-10-18 Thread Mark Wielaard
A bogus ELF file could have sh_entsize as zero. Don't divide by zero, but just assume there are no symbols in the section. https://sourceware.org/bugzilla/show_bug.cgi?id=23786 Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 src/arlib.c | 3 +++ 2 files changed, 7 insertions(+) diff

[Bug general/23786] Divide-by-zero Problem in function arlib_add_symbols() in arlib.c in elfutils-0.174

2018-10-18 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23786 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[PATCH] size: Handle recursive ELF ar files.

2018-10-18 Thread Mark Wielaard
eu-size didn't handle an ELF ar file that contained an ar file itself correctly. handle_ar would recursively call itself but close the ELF file before returning. Only close the ELF file at the top-level. https://sourceware.org/bugzilla/show_bug.cgi?id=23787 Signed-off-by: Mark Wielaard --- src/

[Bug libelf/23787] eu-size: Bad handling of ar files inside are files

2018-10-18 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23787 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|