Skip to content

Commit

Permalink
Merge pull request #25 from byeongkeunahn/short-4
Browse files Browse the repository at this point in the history
Shorten the generated code in short mode
  • Loading branch information
byeongkeunahn authored Nov 30, 2023
2 parents 97e6786 + 248313d commit 9f987b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/static-pie-prestub-amd64-shorter.asm
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ _decode_output:
jnz _decode_output
jmp _decode_loop
_decode_zeros:
movzx ecx, byte [rdi-1]
dec rdi
movzx ecx, byte [rdi]
rep stosb ; the fact we jumped to here ensures al=0
jmp _decode_loop_2

Expand Down
2 changes: 1 addition & 1 deletion scripts/static-pie-prestub-amd64-shorter.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
j X�E1�V1�j^�j"AZj�AX^H�����,#�r#t�Ȓ�,$k�[Ъ����u����O�H�����H+���
j X�E1�V1�j^�j"AZj�AX^H�����,#�r"t�Ȓ�,$k�[Ъ����u���H������H+���
Expand Down
2 changes: 1 addition & 1 deletion scripts/static-pie-template-amd64-shorter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
$$$$solution_src$$$$
}
// SOLUTION END
#[no_link]extern crate std;#[no_mangle]unsafe fn _start(){std::arch::asm!(".quad 56c931459958096ah,6a07b25e016aff31h,0f5841ff6a5a4122h,0e0c11fb097485e05h,74237299232cac0dh,6b242cac92c8fe16h,8e8c1aad0015bc0h,0fdfebf77510c4f6h,0aaf3cfff48ff4fb6h,0d7fff87f2b48d7ebh",in("rsi")r$$$$binary_raw_base91$$$$.as_ptr())}
#[no_link]extern crate std;#[no_mangle]unsafe fn _start(){std::arch::asm!(".octa 6a07b25e016aff3156c931459958096ah,0e0c11fb097485e050f5841ff6a5a4122h,6b242cac92c8fe1674227299232cac0dh,48dfebf77510c4f608e8c1aad0015bc0h,0d7fff87f2b48d8ebaaf30fb60fcfffh",in("rsi")r$$$$binary_raw_base91$$$$.as_ptr())}

0 comments on commit 9f987b4

Please sign in to comment.