Skip to content
Browse files

less fail

  • Loading branch information...
1 parent abb0793 commit e1afe3ac212fa89a11890b90e7636de4a10c5d08 @comex committed
Showing with 7 additions and 11 deletions.
  1. +7 −11 sandbox.S
View
18 sandbox.S
@@ -22,24 +22,24 @@ enospc:
# that error's okay...
mov r0, sp
- adr r1, var_mobile
- movs r2, #19 ;# len(var_mobile)
+ adr r1, string
+ movs r2, #19 ;# "/private/var/mobile"
ldr r3, memcmp
blx r3
cmp r0, #0
bne allow
mov r0, sp
- adr r1, preferences_com_apple
- movs r2, #49 ;# len(preferences_com_apple)
+ adr r1, string
+ movs r2, #49 ;# "/private/var/mobile/Library/Preferences/com.apple"
ldr r3, memcmp
blx r3
cmp r0, #0
beq actually_eval
mov r0, sp
- adr r1, preferences
- movs r2, #39 ;# len(preferences)
+ adr r1, string
+ movs r2, #39 ;# "/private/var/mobile/Library/Preferences"
ldr r3, memcmp
blx r3
cmp r0, #0
@@ -77,11 +77,7 @@ actually_eval:
bx r9
.align 2
-var_mobile: .ascii "/private/var/mobile"
-.align 2
-preferences_com_apple: .ascii "/private/var/mobile/Library/Preferences/com.apple"
-.align 2
-preferences: .ascii "/private/var/mobile/Library/Preferences"
+string: .ascii "/private/var/mobile/Library/Preferences/com.apple"
.align 2
orig_addr: .long c_sb_evaluate_jumpto
memcmp: .long c_memcmp

0 comments on commit e1afe3a

Please sign in to comment.
Something went wrong with that request. Please try again.