mujs can segfault while executing large js code because F->codelen grows to 64k and code addresses are encoded as signed short which then overflows i think larger address representation should be used or F->codelen should be restricted to 64k (and jump offsets should be interpreted as unsigned assuming all addressing is absolute)
Fixed in MuJS commit 8a659b28210220f6e29d5ed671e2c22adde9a7c1 Author: Tor Andersson <tor.andersson@artifex.com> Date: Thu Oct 9 15:08:02 2014 +0200 Typedef instruction and check addresses and literals for overflow when emitting code.