Skip to content

Commit

Permalink
Fixed patch qword
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Dec 14, 2021
1 parent 87e6204 commit 52b0646
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gef.py
Expand Up @@ -1247,7 +1247,6 @@ def heap_addr(self, allow_unaligned=False):
if self.is_main_arena():
heap_section = gef.heap.base_address
if not heap_section:
err("Heap not initialized")
return None
return heap_section
_addr = int(self) + self.struct_size
Expand Down Expand Up @@ -9141,7 +9140,7 @@ def do_invoke(self, argv, *args, **kwargs):
addr = align_address(parse_address(args.location))
size, fcode = self.SUPPORTED_SIZES[self.format]

d = gef.arch.endianness
d = str(gef.arch.endianness)
for value in args.values:
value = parse_address(value) & ((1 << size * 8) - 1)
vstr = struct.pack(d + fcode, value)
Expand Down

0 comments on commit 52b0646

Please sign in to comment.