Skip to content

fix(q): reject trailing bytes in error frames - #17

Open
belowzeroff wants to merge 3 commits into
RayforceDB:masterfrom
belowzeroff:fix/q-error-trailing-bytes
Open

belowzeroff wants to merge 3 commits into
RayforceDB:masterfrom
belowzeroff:fix/q-error-trailing-bytes

Conversation

@belowzeroff

@belowzeroff belowzeroff commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reject Q error frames that contain trailing bytes after the error symbol
  • keep strict frame consumption for malformed error payloads
  • add regression coverage for trailing-byte rejection
  • preserve RAY_ERROR results for malformed or unsupported decode failures

Testing

  • git diff --check
  • make test

User-facing behavior

Malformed Q error frames with extra bytes are rejected, while valid Q error responses still decode as errors and internal malformed-wire diagnostics keep their existing RAY_ERROR behavior.

Notes

This branch is stacked on top of fix/q-codec-transport-safety / #15, because the upstream repository cannot target a fork-only base branch. Until #15 lands, this PR shows both commits.

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