3x-ui/internal/util
MHSanaei ab1c509329 fix(service): keep chunk capacity math from overflowing
chunkStrings/chunkInts sized their result with (len+size-1)/size, so a
size near MaxInt wrapped negative and make panicked with "cap out of
range"; count the chunks with div+remainder instead. NormalizeUDPHop's
len-hops+1 is bounded by len(masks) since hops >= 1, so cap at that.

Resolves CodeQL go/allocation-size-overflow alerts #119 and #120.
2026-10-11 22:10:46 +02:00
..
common Add remote routing URL support (#6168) 2026-08-18 16:02:11 +02:00
cronspec fix(settings): accept five-field crontab for report and LDAP schedules 2026-10-11 20:37:04 +02:00
crypto feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
json_util refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
ldap feat: ldap skip tls verify (#5637) 2026-06-28 18:10:38 +02:00
link fix(finalmask): keep a single udphop mask last in every client finalmask 2026-10-11 18:02:12 +02:00
maskcompat fix(service): keep chunk capacity math from overflowing 2026-10-11 22:10:46 +02:00
netproxy Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
netsafe fix(netsafe): classify IPv6 transition and CGNAT ranges as internal 2026-08-19 19:37:14 +02:00
random style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
reflect_util refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
sys fix(lint): use errors.Is for io.EOF comparison in sys_linux 2026-06-27 16:38:07 +02:00
totp fix(panel): accept 2FA codes from adjacent TOTP windows (#6546) 2026-09-15 15:42:30 +03:00
version refactor(util): move panel version comparison into a shared package 2026-10-02 23:56:52 +02:00
wirecodec fix(nodes): let a master's push and reconcile converge node inbounds 2026-10-05 12:17:59 +02:00
wireguard feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00