You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Lua 5.3, integers are 64 bits, so this will result in a buffer overflow when reading the 128-bit XMMX/YMMX etc. registers on an Intel machine. Similarly, reading a 64-bit register on any 32-bit Lua installation will also result in a buffer overflow.
The text was updated successfully, but these errors were encountered:
Partially solved by b0e36de; reads now use uint_least64_t so reading 64-bit registers is guaranteed to be fine, even on 32-bit versions of Lua. On systems where uint_least64_t is larger than 64 bits, reads up to that width will be fine too.
The current code for reading a register looks like this:
On Lua 5.3, integers are 64 bits, so this will result in a buffer overflow when reading the 128-bit XMMX/YMMX etc. registers on an Intel machine. Similarly, reading a 64-bit register on any 32-bit Lua installation will also result in a buffer overflow.
The text was updated successfully, but these errors were encountered: