Alexey Dolotov
01402bdba2
fix: prevent index out of range panic on 32-bit platforms
...
On 32-bit architectures (e.g. ARM7), int is 32 bits wide.
Casting a uint32 hash value to int can overflow, producing a
negative number. Go's modulo operator preserves the sign, so
the channel index can become -1, causing a panic.
Perform the modulo in uint32 space before indexing to ensure
the result is always non-negative.
Fixes #413
2026-03-28 22:31:47 +03:00
9seconds
a0aabf2391
Switch to rand/v2
2026-02-18 10:34:31 +01:00
9seconds
3b03c4a90a
More idioms related to go 1.26
2026-02-17 23:38:12 +01:00
9seconds
36dad5a2f6
Update golangci-lint
2022-08-08 15:54:38 +03:00
9seconds
6a19ded78e
Update docs
2022-08-04 18:39:00 +03:00
9seconds
30170b9413
Add iplist_size metric
2022-03-11 16:20:11 +03:00
9seconds
04b88cc864
Add documentation for event stream
2021-04-05 15:12:46 +03:00
9seconds
10b78322a3
Implement caching dns resolver
2021-03-30 14:14:37 +03:00
9seconds
daa8b9c798
Add EventReplayAttack
2021-03-29 12:07:18 +03:00
9seconds
bef14bd009
Add support of EventDomainFronting event
2021-03-29 11:56:05 +03:00
9seconds
db8614999a
Rename EventTelegramTraffic back to EventTraffic
2021-03-28 21:43:25 +03:00
9seconds
bc2bd4510a
Rework stats
2021-03-27 22:04:30 +03:00
9seconds
42160a08fe
Add EventTraffic
2021-03-22 17:54:46 +03:00
9seconds
2408f1530f
Add EventIPBlocklisted
2021-03-17 21:24:24 +03:00
9seconds
7617aeadda
Test event stream
2021-03-16 14:54:17 +03:00
9seconds
e009d05a90
Add tests for noop event stream
2021-03-16 11:38:29 +03:00
9seconds
b08d945d7c
Add event stream module
2021-03-15 21:34:53 +03:00