Skip to content

[BUG FIX] Fix regressions which made it nearly impossible to obfuscate scripts without using LuaJIT.#237

Open
SpinnySpiwal wants to merge 1 commit into
prometheus-lua:masterfrom
SpinnySpiwal:master
Open

[BUG FIX] Fix regressions which made it nearly impossible to obfuscate scripts without using LuaJIT.#237
SpinnySpiwal wants to merge 1 commit into
prometheus-lua:masterfrom
SpinnySpiwal:master

Conversation

@SpinnySpiwal
Copy link
Copy Markdown
Contributor

Added math.log10 & loadstring polyfills to support the NumbersToExpressions integrity fix.
Fixes that restore Prometheus to a Client-Agnostic state:

  • Restore full functionality when obfuscating not using LuaJIT
  • Resolve intermittent obfuscation failures with Non-LuaJIT clients
  • Address scientific notation errors that occurred when running outside of LuaJIT
  • Restore Prometheus' previous Lua-Agnostic state. Which did not require you to use LuaJIT for functional obfuscation.

And finally, a new test was added to ensure that there isn't any so called 'random' regressions from NumbersToExpressions again.

It is unfortunate this issue went unnoticed for so long, as I only looked in the Discord today to see multiple people facing the same issue. The new test ensures this won't happen again!

…Integrity Fix to satisfy safety guardrails Non-LuaJIT clients, and fix 'random' obfuscation failures), also fixed Scientific notation causing a large amount of errors when once again, not using LuaJIT. Prometheus is once again Lua Client Agnostic.
@SpinnySpiwal SpinnySpiwal changed the title [BUG FIX] [BUG FIX] Fix regressions which made it nearly impossible to obfuscate scripts without using LuaJIT. May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant