From fb2a89cbfc5049d360bb734b4896946e9963e39a Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 2 Jun 2023 14:25:30 +0200 Subject: cooker, seitan: fix some bugs for op call cooker: - added missing OP_CALL type - local copy of the offset for the type STRUCT - fix return offset - added type LONG in emit_data seitan: - check context if NULL - fix ptr dereference - added a couple of debug print - added error message in seitan for eval --- seitan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'seitan.c') diff --git a/seitan.c b/seitan.c index fff820c..30772df 100644 --- a/seitan.c +++ b/seitan.c @@ -238,7 +238,8 @@ int main(int argc, char **argv) /* The notifier fd was closed by the target */ running = false; } else if (notifier == events[i].data.fd) { - eval(&g, req, notifier); + if (eval(&g, req, notifier) == -1 ) + err(" an error occured during the evaluation"); } } } -- cgit v1.2.3