示例#1
0
 def __init__(self, arch, alloc_size=0x4000, granularity=16):
     super(AngrExternObject, self).__init__('##angr_externs##')
     self._next_addr = 0
     self._lookup_table = {}
     self._arch = arch
     self._alloc_size = alloc_size
     self._granularity = granularity
     self.memory = Clemory(arch)
     self.memory.add_backer(0, '\0' * alloc_size)
示例#2
0
 def __init__(self, arch, alloc_size=0x4000, granularity=16):
     super(AngrExternObject, self).__init__('##angr_externs##')
     self._next_addr = 0
     self._lookup_table = {}
     self._arch = arch
     self._alloc_size = alloc_size
     self._granularity = granularity
     self.memory = Clemory(arch)
     self.memory.add_backer(0, '\0' * alloc_size)
     self.segments = [Segment(0, 0, 0, alloc_size)]
     self.segments[0].is_readable = True
     self.segments[0].is_writable = False
     self.segments[0].is_executable = True