[Bug tools/21310] New: eu-elflint: heap-based buffer overflow in check_symtab_shndx (elflint.c)

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21310 Bug ID: 21310 Summary: eu-elflint: heap-based buffer overflow in check_symtab_shndx (elflint.c) Product: elfutils Version: unspecified Status: UNCONFIRMED Se

[Bug tools/21311] New: eu-elflint: heap-based buffer overflow in check_sysv_hash (elflint.c)

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21311 Bug ID: 21311 Summary: eu-elflint: heap-based buffer overflow in check_sysv_hash (elflint.c) Product: elfutils Version: unspecified Status: UNCONFIRMED Sever

[Bug tools/21312] New: eu-elflint: memory allocation failure in xcalloc (xmalloc.c)

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21312 Bug ID: 21312 Summary: eu-elflint: memory allocation failure in xcalloc (xmalloc.c) Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: norm

[Bug libelf/21315] New: multiple misaligned address errors

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21315 Bug ID: 21315 Summary: multiple misaligned address errors Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component:

[Bug libelf/21315] multiple misaligned address errors for Elf64_Shdr

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21315 Agostino Sarubbo changed: What|Removed |Added Summary|multiple misaligned address |multiple misaligned address

[Bug libelf/21316] New: multiple misaligned address errors for Elf32_Phdr

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21316 Bug ID: 21316 Summary: multiple misaligned address errors for Elf32_Phdr Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2

[Bug libelf/21317] New: misaligned address error for uint32_t

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21317 Bug ID: 21317 Summary: misaligned address error for uint32_t Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Componen

[Bug libelf/21318] New: misaligned access error for Elf32_Shdr

2017-03-27 Thread ago at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21318 Bug ID: 21318 Summary: misaligned access error for Elf32_Shdr Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Compone

[PATCH] libelf: Always update last_offset in updatefile and updatemmap.

2017-03-27 Thread Mark Wielaard
When ELF section data was used, but not updated or marked as dirty and there also existed non-dirty sections and some padding was needed between the sections (possibly because of alignment) then elf_update might write "fill" over some of the existing data. This happened because in that case the las

[Bug libelf/21199] elf_update might "fill" over existing section data

2017-03-27 Thread mjw at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21199 Mark Wielaard changed: What|Removed |Added CC||mjw at redhat dot com --- Comment #1

Re: [RFC] libdw: prepend current directory in read_srclines

2017-03-27 Thread Mark Wielaard
Hi Torsten, On Sun, Mar 26, 2017 at 08:35:50PM +0200, Torsten Polle wrote: > I observed that readelf and elfutils sometimes report different results. Do you have an example of this? It would be good to have a testcase. > PFA a patch that corrects this. I’m not sure whether the way I tackled > th

[PATCH] elflint: Check symbol table data is big enough before checking.

2017-03-27 Thread Mark Wielaard
Before checking symbol index zero we should make sure the data size is big enough. https://sourceware.org/bugzilla/show_bug.cgi?id=21310 Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 src/elflint.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/

[Bug tools/21310] eu-elflint: heap-based buffer overflow in check_symtab_shndx (elflint.c)

2017-03-27 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21310 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1

[PATCH] elflint: Don't trust sh_entsize when checking hash sections.

2017-03-27 Thread Mark Wielaard
Calculate and use the expected entsize instead of relying on the one given by the ELF file section header. Return early if there isn't enough data in the section to check the full hash table. https://sourceware.org/bugzilla/show_bug.cgi?id=21311 Signed-off-by: Mark Wielaard --- src/ChangeLog |

[Bug tools/21311] eu-elflint: heap-based buffer overflow in check_sysv_hash (elflint.c)

2017-03-27 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21311 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1

[PATCH] elflint: Sanity check the number of phdrs and shdrs available.

2017-03-27 Thread Mark Wielaard
Make sure we can at least read the shnum sections or phnum segments. Limit the number we do check to those we can actually read. https://sourceware.org/bugzilla/show_bug.cgi?id=21312 Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 src/elflint.c | 26 ++ 2 files

[Bug tools/21312] eu-elflint: memory allocation failure in xcalloc (xmalloc.c)

2017-03-27 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21312 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1