Skip to content

Commit

Permalink
incorrect use of SectionHeaders64 resulting in index out of bounds panic
Browse files Browse the repository at this point in the history
  • Loading branch information
ac0d3r committed Sep 20, 2023
1 parent cd05ea1 commit 29a6730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (p *Parser) parseELFSections32() error {

for i, s := range sections {
var ok bool
s.SectionName, ok = getString(shstrtab, int(p.F.SectionHeaders64[i].Name))
s.SectionName, ok = getString(shstrtab, int(p.F.SectionHeaders32[i].Name))
if !ok {
return errors.New("failed to parse string table")
}
Expand Down

0 comments on commit 29a6730

Please sign in to comment.