3x-ui/internal/util/maskcompat
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
..
salamander.go fix(finalmask): refuse a salamander password xray-core cannot open 2026-10-11 18:26:45 +02:00
salamander_test.go fix(finalmask): refuse a salamander password xray-core cannot open 2026-10-11 18:26:45 +02:00
udphop.go fix(service): keep chunk capacity math from overflowing 2026-10-11 22:10:46 +02:00
udphop_test.go fix(finalmask): hop client UDP through the udphop mask 2026-10-11 11:20:34 +02:00
xdns.go feat(xray): update xray-core to v26.10.10 and adapt panel 2026-10-11 07:55:12 +02:00
xdns_test.go feat(xray): update xray-core to v26.10.10 and adapt panel 2026-10-11 07:55:12 +02:00