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 del_fastbin(ar)
		nfastbins = 10
		nfastbins.times { |i|
			ptr = ar.fastbinsy[i]
			while ptr
				@chunks.delete ptr+2*@ptsz
				ptr = @cp.decode_c_ary('void *', 3, @dbg.memory, ptr)[2]
			end
		}
	end
def del_fastbin ( ar ) nfastbins = 10 nfastbins . times { | i | ptr = ar . fastbinsy [ i ] while ptr @chunks . delete ptr + 2 * @ptsz ptr = @cp . decode_c_ary ( 'void *' , 3 , @dbg . memory , ptr ) [ 2 ] end } end
find all chunks in the memory address space
find all chunks in the memory address space
ar