fix: clamp ItemCount within 32-bit integer range #1432

Merged
Sainan merged 1 commits from clamp-count into main 2025-04-02 13:20:06 -07:00
Owner

It seems the game uses 32-bit ints for these values on the C++ side before passing them on to Lua where they become floats. This would cause the game to have overflow/underflow semantics when receiving values outside of these bounds.

It seems the game uses 32-bit ints for these values on the C++ side before passing them on to Lua where they become floats. This would cause the game to have overflow/underflow semantics when receiving values outside of these bounds.
Sainan added 1 commit 2025-04-02 05:22:29 -07:00
fix: clamp ItemCount within 32-bit integer range
All checks were successful
Build / build (20) (push) Successful in 41s
Build / build (18) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 42s
Build / build (22) (push) Successful in 1m9s
Build / build (20) (pull_request) Successful in 1m14s
Build / build (22) (pull_request) Successful in 1m9s
ddf7a658ca
It seems the game uses 32-bit ints for these values on the C++ side before passing them on to Lua where they become floats. This would cause the game to have overflow/underflow semantics when receiving values outside of these bounds.
Sainan merged commit 2173bdb8b8 into main 2025-04-02 13:20:06 -07:00
Sainan deleted branch clamp-count 2025-04-02 13:20:06 -07:00
Sign in to join this conversation.
No description provided.