Skip to content

Commit

Permalink
elf/section_info: list segments when no section
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed May 19, 2022
1 parent 04f6bcc commit 25b60f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metasm/exe_format/elf_decode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ def init_disassembler

# returns an array of [name, addr, length, info]
def section_info
if @sections
if @sections and @sections.length > 1
@sections[1..-1].map { |s|
[s.name, s.addr, s.size, s.flags.join(',')]
}
Expand Down

0 comments on commit 25b60f5

Please sign in to comment.