assert(back->execute == SetFunc);
if(f->code) {
back->opcode = eRegPushImm;
- back->m_val = f->code;
+ back->m_val = (m_uint)f->code;
// back->m_val2 = SZ_INT;
} else
back->m_val = (m_uint)f;
}
Env new_env(MemPool p) {
- const Env env = (Env)xmalloc(sizeof(struct Env_));
+ const Env env = (Env)mp_malloc(p, Env);
env->global_nspc = new_nspc(p, "global_nspc");
env->context = NULL;
env->scope = new_envscope(p);
#include "arg.h"
static void sig(int unused NUSED) {
-#ifdef BUILD_ON_WINDOWS
+//#ifdef BUILD_ON_WINDOWS
exit(EXIT_FAILURE);
-#else
- pthread_kill(pthread_self(), SIGTERM);
- pthread_exit(NULL);
-#endif
+//#else
+// pthread_kill(pthread_self(), SIGKILL);
+// pthread_exit(NULL);
+//#endif
}
#ifdef __AFL_HAVE_MANUAL_CONTROL