def test_remove_instruction_patch(self): self.run_test("printf_nopie", [ RemoveInstructionPatch(0x103e0, 2), RawMemPatch(0x10450, b"\xbf") ], expected_output=b"\xbfs", expected_returnCode=0)
def test_raw_mem_patch(self): self.run_test("printf_nopie", [RawMemPatch(0x120000cf0, b"No")], expected_output=b"No", expected_returnCode=0)