Skip to content

Use go-nmsg 0.4.0 - #88

Open
satta wants to merge 3 commits into
masterfrom
go-nmsg-0.4.0
Open

satta wants to merge 3 commits into
masterfrom
go-nmsg-0.4.0

Conversation

@satta

@satta satta commented Oct 21, 2026

Copy link
Copy Markdown
Member

This PR bumps the go-nmsg dependency from 0.2.0 to 0.4.0, which hardens NMSG input against zlib bombs and container length overflows. The new version also pulls in ZeroMQ via cgo, so building balboa now needs libzmq.
CI, the Nix shell and the README are updated to match. It also adds tests for NMSG format decoding with different container settings and the first tests for the NMSG UDP socket feeder.

satta added 3 commits October 21, 2026 23:42
go-nmsg 0.4.0 fixes zlib bomb and container length overflow issues
when reading NMSG input. It also unconditionally pulls in
github.com/pebbe/zmq4, so building balboa now requires cgo and libzmq.
Install libzmq in CI and the Nix shell and document the new build
dependency.
Round-trip the reference data through compressed, small and
fragmented containers, and check that oversized containers, oversized
compressed buffers and checksum mismatches are rejected.

Cases involving compressed fragmented containers are skipped, as
go-nmsg currently tries to inflate each fragment separately and cannot
decode such input.
Exercise the feeder over a local UDP socket with plain, compressed and
fragmented containers, payloads from other vendors and malformed
containers it is expected to recover from.
@satta satta assigned 0mbi and fhonza Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants