Skip to content

Native sequence overload demands scratch buffer >= entire input, body included #70

Open

Description

@Kaliumhexacyanoferrat

Severity: Low — 2026-10-30 security review

ReadOnlySequence.CopyTo throws if the scratch buffer is smaller than the whole sequence (bindings/dotnet/Glyph11.Native/Glyph11Parser.cs:132-133) — and the sequence includes the body, not just the header block.

The README's stackalloc byte[8192] "sized to your max header block" (README.md:93) therefore breaks on any larger multi-segment read: valid requests fail with an ArgumentException instead of the expected HttpParseException.

Fix: copy only up to the header-block limit and report "incomplete" beyond it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecurityFinding from a security review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions