cs2-SimpleAdmin/CS2-SimpleAdmin
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
..
3rd_party Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
Api Add per-player menu localization and refactor menus 2025-10-30 01:41:08 +01:00
Commands Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
Database Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
Extensions Refactor fun commands to external module 2025-10-19 03:12:58 +02:00
lang Add per-player menu localization and refactor menus 2025-10-30 01:41:08 +01:00
Managers fix: OverflowException in CacheManager when reading negative IP values from SQLite 2026-06-14 23:57:54 -03:00
Menus Fix closure issues in menus and update dependencies 2025-11-06 02:24:43 +01:00
Models Update ban logic and StatusBlocker plugin version 2025-12-13 16:54:33 +01:00
admin_help.txt 1.6.0a 2024-09-28 18:03:03 +02:00
Config.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
CS2-SimpleAdmin.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
CS2-SimpleAdmin.csproj Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
Events.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
Helper.cs Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00
Variables.cs Refactor player cache and ban checks, update version 2025-12-02 17:37:14 +01:00
VERSION Version bump and multi-account/IP ban fixes 2026-04-23 22:15:44 +02:00