cs2-SimpleAdmin/CS2-SimpleAdmin/Managers
aggus19 a7f66c0fb9 fix: OverflowException in CacheManager when reading negative IP values from SQLite
SQLite stores uint values > 2,147,483,647 as negative int64. When Dapper
deserializes the address column from sa_players_ips into a uint tuple field,
values like -1250625110 (which represents a valid IP as uint: 3044342186)
cause a System.OverflowException.

This fix changes the query tuple type from uint to long and adds an explicit
cast (uint)(value & 0xFFFFFFFF) to safely convert both positive and negative
stored values back to the correct uint representation.

Affects: SQLite users with IP addresses in the upper half of the uint range
(IPs > 128.x.x.x)
2026-06-14 23:57:54 -03:00
..
BanManager.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
CacheManager.cs fix: OverflowException in CacheManager when reading negative IP values from SQLite 2026-06-14 23:57:54 -03:00
DiscordManager.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
MuteManager.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
PermissionManager.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
PlayerManager.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
PlayerPenaltyManager.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
ServerManager.cs Update ServerManager.cs 2026-01-27 09:51:12 +01:00
WarnManager.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00