code wiki / (root) / nx_normal_pointer_probe_t337.nx

nx_normal_pointer_probe_t337.nx source

↩ module page · 12 lines · 338 B

1import "nx_syscalls.nx" 2import "nx_glbnorm_lib.nx" 3func main(argc: i64, argv: *i64) -> i64 { 4 let p: *i64 = sys_mmap(64) as *i64 5 p[0]=123; p[1]=456; p[2]=789; p[3]=987; p[4]=654 6 gn_unit3(3,4,0,p+2) 7 if p[0] != 123 { return 71 } 8 if p[1] != 456 { return 72 } 9 if p[2] < 5033000 { return 73 } 10 if p[2] > 5033300 { return 74 } 11 return 0 12}