Skip to content

Conversation

dweiller
Copy link
Contributor

I'm not sure the regression test (i.e. change to existing test) is worth including/appropriate since it's a bit complicated and is probably not clear what it's doing - it can presumably be simplified, this is just the first small example I came up with. The point is that to trigger the bug, a stream needs to only partially do a the splatBytes call and then have the calls to writeSplat not coincidentally write the correct amount, but overflow the counter.

Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As much as I love silly things, if you want to add SillyStream can you make it not silly and add it to std.testing?

otherwise, feel free to close this since a fix landed in 66e49d9.

@dweiller dweiller closed this Jul 26, 2025
@dweiller dweiller deleted the write-bytes-splat branch July 28, 2025 08:18
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