From a8a50b43c03cf6e152220349c2644c0276d097f2 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Sat, 11 Jun 2011 18:50:33 +0000 Subject: [PATCH] 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 --- rop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rop.rb b/rop.rb index 6b219da..f59ef14 100644 --- a/rop.rb +++ b/rop.rb @@ -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'