SIGSEGV removal.

This commit is contained in:
Ian A. Mason 2018-04-16 15:21:30 -07:00
parent b40985cee2
commit 763672d293

View File

@ -322,6 +322,9 @@ func extractSectionUnix(inputFile string) (contents []string) {
LogFatal("ELF file %s could not be read.", inputFile)
}
section := elfFile.Section(ELFSectionName)
if section == nil {
LogFatal("Error reading the %s section of ELF file %s.", ELFSectionName, inputFile)
}
sectionContents, errContents := section.Data()
if errContents != nil {
LogFatal("Error reading the %s section of ELF file %s.", ELFSectionName, inputFile)