Fixes #4703: Change an assignment in the loop to append instead
git-svn-id: file:///home/svn/framework3/trunk@12910 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
10af08d8af
commit
a8a50b43c0
2
rop.rb
2
rop.rb
|
@ -91,7 +91,7 @@ class RopCollect < RopBase
|
||||||
gadgets = []
|
gadgets = []
|
||||||
|
|
||||||
# find matches by scanning for the pattern
|
# find matches by scanning for the pattern
|
||||||
matches = @disassembler.pattern_scan(pattern)
|
matches += @disassembler.pattern_scan(pattern)
|
||||||
if @bin.kind_of?(Metasm::PE)
|
if @bin.kind_of?(Metasm::PE)
|
||||||
@bin.sections.each do |section|
|
@bin.sections.each do |section|
|
||||||
next if section.characteristics.include? 'MEM_EXECUTE'
|
next if section.characteristics.include? 'MEM_EXECUTE'
|
||||||
|
|
Loading…
Reference in New Issue