File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -238,17 +238,19 @@ def remove_jump(self) -> None:
238238 addend = - 4 ,
239239 ) as hole :
240240 # jmp qword ptr [rip]
241- jump = b"\x48 \xFF \x25 \x00 \x00 \x00 \x00 "
241+ jump = b"\x48 \xff \x25 \x00 \x00 \x00 \x00 "
242242 offset -= 3
243243 case Hole (
244244 offset = offset ,
245245 kind = "IMAGE_REL_I386_REL32" | "R_X86_64_PLT32" | "X86_64_RELOC_BRANCH" ,
246246 value = HoleValue .CONTINUE ,
247247 symbol = None ,
248248 addend = addend ,
249- ) as hole if _signed (addend ) == - 4 :
249+ ) as hole if (
250+ _signed (addend ) == - 4
251+ ):
250252 # jmp 5
251- jump = b"\xE9 \x00 \x00 \x00 \x00 "
253+ jump = b"\xe9 \x00 \x00 \x00 \x00 "
252254 offset -= 1
253255 case Hole (
254256 offset = offset ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class _Target(typing.Generic[_S, _R]):
4646
4747 def _get_nop (self ) -> bytes :
4848 if re .fullmatch (r"aarch64-.*" , self .triple ):
49- nop = b"\x1f \x20 \x03 \xD5 "
49+ nop = b"\x1f \x20 \x03 \xd5 "
5050 elif re .fullmatch (r"x86_64-.*|i686.*" , self .triple ):
5151 nop = b"\x90 "
5252 else :
You can’t perform that action at this time.
0 commit comments