]> sourceware.org Git - libabigail.git/commit
Handle zero sh_entsize in get_soname_of_elf_file
authorMark Wielaard <mark@klomp.org>
Tue, 19 Jul 2022 23:01:14 +0000 (01:01 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 20 Sep 2022 08:33:24 +0000 (10:33 +0200)
commitf3b889a2cb94f8bb8372db14520d235dda7fdc3b
treee7f5a59aefd94d7f9125ee5731eeb29410672f06
parent775f76826d65715b84b8760921f94bdad5b4f3c2
Handle zero sh_entsize in get_soname_of_elf_file

Apparently guile produced ELF files don't set sh_entsize for the
dynamic section. Which would cause a divide by zero. Luckily we do
know how big an dynamic entry should be. So use gelf_fsize for
ELF_T_DYN if sh_entsize is zero.

  * src/abg-dwarf-reader.cc (get_soname_of_elf_file):
  Make sure entsize is non-zero before use.

https://sourceware.org/bugzilla/show_bug.cgi?id=29346

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/abg-dwarf-reader.cc
This page took 0.031581 seconds and 5 git commands to generate.