From 2bd770154d4960c2c594f3380caf320c81e1cbcc Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Mon, 5 Jun 2023 14:47:53 +0200 Subject: seitan: use jmp.offset as absolute value --- operations.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'operations.c') diff --git a/operations.c b/operations.c index 6d32751..fc27270 100644 --- a/operations.c +++ b/operations.c @@ -364,15 +364,13 @@ int op_cmp(const struct seccomp_notif *req, int notifier, struct gluten *g, res = memcmp(px, py, op->size); - if (gluten_read(NULL, g, &jmp, op->jmp, sizeof(jmp)) == -1) - return -1; if ((res == 0 && (cmp == CMP_EQ || cmp == CMP_LE || cmp == CMP_GE)) || (res < 0 && (cmp == CMP_LT || cmp == CMP_LE)) || (res > 0 && (cmp == CMP_GT || cmp == CMP_GE)) || (res != 0 && (cmp == CMP_NE))) { debug(" op_cmp: successful comparison"); - debug(" op_cmp: jump to %d", jmp); - return jmp; + debug(" op_cmp: jump to %d", op->jmp.offset); + return op->jmp.offset; } return 0; -- cgit v1.2.3