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:
Joshua Drake 2011-06-11 18:50:33 +00:00
parent 10af08d8af
commit a8a50b43c0
1 changed files with 1 additions and 1 deletions

2
rop.rb
View File

@ -91,7 +91,7 @@ class RopCollect < RopBase
gadgets = []
# find matches by scanning for the pattern
matches = @disassembler.pattern_scan(pattern)
matches += @disassembler.pattern_scan(pattern)
if @bin.kind_of?(Metasm::PE)
@bin.sections.each do |section|
next if section.characteristics.include? 'MEM_EXECUTE'