No description
  • Go 99.5%
  • Dockerfile 0.5%
Find a file
Alexey Skobkin 2d241d812c fix(dedup): make bit operations explicitly safe with mustServerBit
Replace all raw '1 << serverIndex' operations with mustServerBit(),
which validates the index is in [0, 63] before shifting. Out-of-range
indices panic with ErrInvalidServerIndex.

- Add maxServers constant (64) and ErrInvalidServerIndex error
- Add mustServerBit() helper used by GetOrCreate, MarkDelivered, WasDelivered
- Add unit tests for server index -1, 63, 64 boundary conditions

This provides defense-in-depth: even if the config cap of 64 servers
is ever raised or bypassed, invalid server indices cannot silently
cause bit-shift collisions in the dedup delivery bitmask.
2026-05-28 05:27:18 +03:00
cmd/meshmq-link feat: initial commit, unverified draft. 2026-05-28 03:51:44 +03:00
configs fix: security hardening for payload size, rate limiting, dedup safety, and topic validation 2026-05-28 05:20:20 +03:00
internal fix(dedup): make bit operations explicitly safe with mustServerBit 2026-05-28 05:27:18 +03:00
.dockerignore feat: initial commit, unverified draft. 2026-05-28 03:51:44 +03:00
.gitignore build: adding IDEA configs to .gitignore 2026-05-28 03:54:36 +03:00
AGENTS.md feat: initial commit, unverified draft. 2026-05-28 03:51:44 +03:00
docker-compose.example.yml feat: initial commit, unverified draft. 2026-05-28 03:51:44 +03:00
Dockerfile feat: initial commit, unverified draft. 2026-05-28 03:51:44 +03:00
go.mod mod: fix direct dependencies marked as indirect 2026-05-28 04:25:45 +03:00
go.sum mod: fix direct dependencies marked as indirect 2026-05-28 04:25:45 +03:00