From 8602c233373333dd6d39f61b8dfb9b7d172fb3e8 Mon Sep 17 00:00:00 2001 From: As9xm <197338912+As9xm@users.noreply.github.com> Date: Thu, 10 Sep 2026 04:07:27 +0300 Subject: [PATCH] Fix atfork parent/child loop decrement causing infinite loop and OOB x86emu_fork ran parent/child atfork handlers with 'for (i=0; i0, i goes 0,-1,-2... staying atfork_sz; --i) + for (int i=0; iatfork_sz; ++i) if(my_context->atforks[i].parent) EmuCall(emu, my_context->atforks[i].parent); } else if(v==0) { // execute atforks child functions - for (int i=0; iatfork_sz; --i) + for (int i=0; iatfork_sz; ++i) if(my_context->atforks[i].child) EmuCall(emu, my_context->atforks[i].child); }