Skip to content

fix(dav): reject negative seeks in assembly streams - #65399

Draft
joshtrichards wants to merge 2 commits into
masterfrom
jtr/DAVAssemblyStream
Draft

joshtrichards wants to merge 2 commits into
masterfrom
jtr/DAVAssemblyStream

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  • Reject seek offsets below zero after resolving SEEK_CUR and SEEK_END.
  • Add unit tests covering seek modes and boundaries, including negative offsets, EOF, and failed-seek position preservation. Also cover empty assemblies, resource-backed chunks, short reads, and stream position and size.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Reject seek offsets below zero after resolving SEEK_CUR and SEEK_END. This prevents invalid positions and avoids selecting a nonexistent node when seeking backward in an empty assembly.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Test seek modes and boundaries, including negative offsets, EOF, and failed-seek position preservation. Also cover empty assemblies, resource-backed chunks, short reads, and stream position and size.

Assisted-by: Copilot:gpt-6-luna

Signed-off-by: Josh <josh.t.richards@gmail.com>

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants