Skip to content

Commit aeb70ca

Browse files
committed
fix review issues
1 parent b7b8c37 commit aeb70ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug/elf/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ func NewFile(r io.ReaderAt) (*File, error) {
481481
}
482482
shstr := f.Sections[shstrndx]
483483
if shstr.Type != SHT_STRTAB {
484-
return nil, &FormatError{0, "invalid (pointing to non SHT_STRTAB section) ELF shstrndx", shstrndx}
484+
return nil, &FormatError{shoff + int64(shstrndx*shentsize), "invalid ELF section name string table type", shstr.Type}
485485
}
486486
shstrtab, err := shstr.Data()
487487
if err != nil {

0 commit comments

Comments
 (0)