Skip to content

Commit

Permalink
Merge pull request #4 from ac0d3r/main
Browse files Browse the repository at this point in the history
incorrect use of SectionHeaders64 resulting in index out of bounds panic
  • Loading branch information
LordNoteworthy authored Sep 20, 2023
2 parents cd05ea1 + 29a6730 commit fefec58
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 fefec58

Please sign in to comment.