| OLD | NEW |
| (Empty) |
| 1 @hex: | |
| 2 # Sample stubout code, with multiple stubouts. | |
| 3 # | |
| 4 # add %al, %al | |
| 5 00 c0 | |
| 6 # add &rsp, %r15; -- stub out! | |
| 7 4c 01 fc | |
| 8 # add %ebx, %r8d | |
| 9 44 01 c3 | |
| 10 # test %rax, %rax | |
| 11 48 85 c0 | |
| 12 # inc [%rip+0x397614]; -- stub out! | |
| 13 67 ff 05 a4 76 39 00 | |
| 14 # mov %r9, %rdx | |
| 15 49 89 d1 | |
| 16 # mov [%rbp+0x63e470], %rax; -- stub out! | |
| 17 67 48 89 84 25 70 e4 63 00 | |
| 18 | |
| 19 @rval: | |
| 20 VALIDATOR: 0000000000000002: 4c 01 fc add
%rsp, %r15 | |
| 21 VALIDATOR: ERROR: Illegal assignment to RSP | |
| 22 VALIDATOR: 000000000000000b: 67 ff 05 a4 76 39 00 inc
[%rip+0x3976a4] | |
| 23 VALIDATOR: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client | |
| 24 VALIDATOR: 000000000000000b: 67 ff 05 a4 76 39 00 inc
[%rip+0x3976a4] | |
| 25 VALIDATOR: ERROR: Assignment to non-64 bit memory address | |
| 26 VALIDATOR: 0000000000000015: 67 48 89 84 25 70 e4 63 00 mov
[%rbp+0x63e470], %rax | |
| 27 VALIDATOR: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client | |
| 28 VALIDATOR: 0000000000000015: 67 48 89 84 25 70 e4 63 00 mov
[%rbp+0x63e470], %rax | |
| 29 VALIDATOR: ERROR: Assignment to non-64 bit memory address | |
| 30 VALIDATOR: Checking jump targets: 0 to 1e | |
| 31 VALIDATOR: Checking that basic blocks are aligned | |
| 32 *** <input> IS UNSAFE *** | |
| 33 @sval: | |
| 34 Some instructions were replaced with HLTs. | |
| 35 STUBBED OUT as follows: | |
| 36 0000000000000000: 00 c0 add %al, %al | |
| 37 0000000000000002: f4 hlt | |
| 38 0000000000000003: f4 hlt | |
| 39 0000000000000004: f4 hlt | |
| 40 0000000000000005: 44 01 c3 add %ebx, %r8d | |
| 41 0000000000000008: 48 85 c0 test %rax, %rax | |
| 42 000000000000000b: f4 hlt | |
| 43 000000000000000c: f4 hlt | |
| 44 000000000000000d: f4 hlt | |
| 45 000000000000000e: f4 hlt | |
| 46 000000000000000f: f4 hlt | |
| 47 0000000000000010: f4 hlt | |
| 48 0000000000000011: f4 hlt | |
| 49 0000000000000012: 49 89 d1 mov %r9, %rdx | |
| 50 0000000000000015: f4 hlt | |
| 51 0000000000000016: f4 hlt | |
| 52 0000000000000017: f4 hlt | |
| 53 0000000000000018: f4 hlt | |
| 54 0000000000000019: f4 hlt | |
| 55 000000000000001a: f4 hlt | |
| 56 000000000000001b: f4 hlt | |
| 57 000000000000001c: f4 hlt | |
| 58 000000000000001d: f4 hlt | |
| 59 @dis: | |
| 60 0000000000000000: 00 c0 add %al, %al | |
| 61 0000000000000002: 4c 01 fc add %rsp, %r15 | |
| 62 0000000000000005: 44 01 c3 add %ebx, %r8d | |
| 63 0000000000000008: 48 85 c0 test %rax, %rax | |
| 64 000000000000000b: 67 ff 05 a4 76 39 00 inc [%rip+0x397
6a4] | |
| 65 0000000000000012: 49 89 d1 mov %r9, %rdx | |
| 66 0000000000000015: 67 48 89 84 25 70 e4 63 00 mov [%rbp+0x63e
470], %rax | |
| 67 @vdis: | |
| 68 0000000000000000: 00 c0 add %al, %al | |
| 69 0000000000000002: 4c 01 fc add %rsp, %r15 | |
| 70 0000000000000005: 44 01 c3 add %ebx, %r8d | |
| 71 0000000000000008: 48 85 c0 [P] dontcare %r
ax (u), %rax (u) | |
| 72 000000000000000b: 67 ff 05 a4 76 39 00 [P] dontcare [%
rip+0x3976a4] (suz) | |
| 73 0000000000000012: 49 89 d1 mov %r9, %rdx | |
| 74 0000000000000015: 67 48 89 84 25 70 e4 63 00 mov [%rbp+0x63e
470], %rax | |
| 75 @rdfa_output: | |
| 76 2: [0] improper %rsp sandboxing | |
| 77 b: [0] unrecognized instruction | |
| 78 15: [1] unrecognized instruction | |
| 79 return code: 1 | |
| OLD | NEW |