Cockatrice/libcockatrice_utility
DawnFire42 2a1b505913
Harden offsetCardCounter() against signed-int overflow
Replace the raw oldValue + offset sum with addClamped(), clamping to [0, MAX_COUNTER_VALUE] without overflow.
2026-06-28 16:20:55 -04:00
..
libcockatrice/utility Harden offsetCardCounter() against signed-int overflow 2026-06-28 16:20:55 -04:00
CMakeLists.txt Unify counter clamp arithmetic into shared addClamped() helper 2026-06-28 16:20:54 -04:00