prometheus-lua / Prometheus

Lua Obfuscator written in pure Lua
https://levno-710.gitbook.io/prometheus/
GNU Affero General Public License v3.0
220 stars 65 forks source link

[BUG] huge numbers get converted to `inf` #126

Closed capthehacker99 closed 1 year ago

capthehacker99 commented 1 year ago

Description Huge numbers gets turned into inf

Expected behavior Huge numbers should get converted to math.huge or stay the same

To Reproduce Steps to reproduce the behavior:

$ echo local a = 999e9999; > test.lua
$ lua cli.lua --preset Minify test.lua --o testout.lua
PROMETHEUS: Applying Obfuscation Pipeline to test.lua ...
PROMETHEUS: Parsing ...
PROMETHEUS: Parsing Done in 0.00 seconds
PROMETHEUS: Renaming Variables ...
PROMETHEUS: Renaming Done in 0.00 seconds
PROMETHEUS: Generating Code ...
PROMETHEUS: Code Generation Done in 0.00 seconds
PROMETHEUS: Obfuscation Done in 0.01 seconds
PROMETHEUS: Generated Code size is 55.00% of the Source Code size
PROMETHEUS: Writing output to "testout.lua"
$ type testout.lua
local T=inf