libbacktrace: don't crash if ELF file has no sections
authorIan Lance Taylor <iant@golang.org>
Sun, 10 May 2020 03:34:25 +0000 (20:34 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 10 May 2020 03:34:25 +0000 (20:34 -0700)
commitef6394205d7bcab00dca01182d708ad5a6360a7b
tree8eedda9eef3497501933c16c6147e6039d29428c
parent4ae915cdbf0d8aec5bf4db9a6b37306e84f99766
libbacktrace: don't crash if ELF file has no sections

libbacktrace/
* elf.c (elf_add): Bail early if there are no section headers at all.
libbacktrace/ChangeLog
libbacktrace/elf.c