Skip to content

Harden cowrie go codecs and glyph parsing#1

Merged
phenomenon0 merged 1 commit intomainfrom
codex
Mar 7, 2026
Merged

Harden cowrie go codecs and glyph parsing#1
phenomenon0 merged 1 commit intomainfrom
codex

Conversation

@phenomenon0
Copy link
Contributor

Summary

  • harden cowrie/go/codec against typed decode panics and decompression-limit bypasses
  • mirror hardened GLYPH Go parsing into cowrie/go/glyph
  • add regression coverage for the audited safety issues

Included

  • codec: avoid unsafe reflect.Set on typed non-struct targets
  • codec: enforce reader decompression limits during gzip/zstd expansion
  • codec: correct master-stream malformed-frame safety fixtures/tests
  • glyph: apply parser, packed-parser, loose-number, patch, and incremental hardening from glyph/go

Verification

  • cd cowrie/go && GOCACHE=/tmp/codex-gocache-cowrie go test ./codec/...
  • cd cowrie/go && GOCACHE=/tmp/codex-gocache-cowrie-glyph go test ./glyph/...

@phenomenon0 phenomenon0 merged commit 8b7ba83 into main Mar 7, 2026
6 checks passed
@phenomenon0 phenomenon0 deleted the codex branch March 7, 2026 23:07
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.

1 participant