[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [NoW] Arithmetic caveat in Lua 5.3
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Wed, 9 Jan 2019 23:36:44 +0300
"NoW" stands for "Nitpicking on Wednesdays" :-)
(unimportant questions about Lua design and implementation)
It was impossible in Lua 5.2, but is possible since Lua 5.3:
There exist numbers x and y such that
assert(x > y and x - y == 0)
This potentially could break the logic of your script.
When migrating old projects to newer Lua versions,
make sure your application withstands new options of maliciously crafted input.