Skip to content

Commit

Permalink
kyle, it is 2025, and 32bit system is still a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle committed Jan 24, 2025
1 parent c7e2e04 commit 79a3bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angrop/chain_builder/mem_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _write_to_mem_with_gadget(self, gadget, addr_val, data, use_partial_controll
raise ValueError(f"Unknown gadget transit_type: {gadget.transit_type}")

for idx in range(gadget.stack_change // bytes_per_pop):
if idx == pc_offset//8:
if idx == pc_offset//bytes_per_pop:
next_pc_val = rop_utils.cast_rop_value(
chain._blank_state.solver.BVS("next_pc", self.project.arch.bits),
self.project,
Expand Down

0 comments on commit 79a3bc1

Please sign in to comment.