'Heap dump is a dump of the heap from gdb, i.e. the result of the
following gdb command:
``dump binary memory [stack_dump] [begin] [end]``
:param heap_dump:   The dump file.
:param heap_base:   The start address of the heap in the gdb session.'

def set_heap(self, heap_dump, heap_base):

    data = self._read_data(heap_dump)
    self.state.libc.heap_location = (heap_base + len(data))
    addr = heap_base
    l.info(('Set    heap    from    0x%x    to    0x%x' % (addr, (addr + len(data)))))
    self._write(addr, data)
