node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
# find all chunks in the memory address space
find all chunks in the memory address space
find all chunks in the memory address space
def scan_mmap_xr(base, len)
		dw = dwcache(base, len)
		lst = dw[2..-1].find_all { |pp| @chunks[pp] }
		@xrchunksto[base] = lst if not lst.empty?
		lst.each { |pp| (@xrchunksfrom[pp] ||= []) << base }
	end
def scan_mmap_xr ( base , len ) dw = dwcache ( base , len ) lst = dw [ 2 .. - 1 ] . find_all { | pp | @chunks [ pp ] } @xrchunksto [ base ] = lst if not lst . empty? lst . each { | pp | ( @xrchunksfrom [ pp ] ||= [ ] ) << base } end
find all chunks in the memory address space
find all chunks in the memory address space
base
len