diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-06-02 14:25:30 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-06-02 14:26:21 +0200 |
commit | fb2a89cbfc5049d360bb734b4896946e9963e39a (patch) | |
tree | 58e9c939ce7a1819bdfb803837b899b46da31e2e /seitan.c | |
parent | 80309fbd77cbafa3784fa7295afb56c446d59b93 (diff) | |
download | seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.gz seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.bz2 seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.lz seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.xz seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.zst seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.zip |
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
Diffstat (limited to 'seitan.c')
-rw-r--r-- | seitan.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); } } } |