diff options
Diffstat (limited to 'operations.c')
-rw-r--r-- | operations.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/operations.c b/operations.c index 8cd0828..afc4b00 100644 --- a/operations.c +++ b/operations.c @@ -313,6 +313,12 @@ int do_operations(void *data, struct op operations[], struct seccomp_notif *req, break; case OP_END: return 0; + case OP_CMP: + if (memcmp((uint16_t *)data + operations[i].cmp.s1_off, + (uint16_t *)data + operations[i].cmp.s2_off, + operations[i].cmp.size) != 0) { + i = operations[i].cmp.jmp; + } break; default: fprintf(stderr, "unknow operation %d \n", |