Skip to content

Conversation

xxzefgh
Copy link
Contributor

@xxzefgh xxzefgh commented Sep 11, 2025

Added batch buffer boundary checks to prevent crash on incomplete batch. Fixes #108.

I'm not sure if this is a proper fix, or maybe something needs to be adjusted in connection.ts for reader to not get incomplete batch in the first place.

@ShogunPanda waiting for your feedback and I'll add/fix tests

Signed-off-by: Mirza Brunjadze <brunjadzem@gmail.com>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Awesome work, can you add a test?

@ShogunPanda
Copy link
Contributor

Thanks for the work @xxzefgh, but apparently it was a different problem: when receiving more that a batch in a response, I was not skipping compressed bytes in the original reader after decompressing.

See #116.
I'm closing this for now.

@xxzefgh
Copy link
Contributor Author

xxzefgh commented Sep 25, 2025

Hello @ShogunPanda, unfortunately #116 didn't fix our issue. I'll try to create a small reproduction and open a new issue.

@ShogunPanda
Copy link
Contributor

Amazing. Let me know then!

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.

UserError: Out of bounds attempting to consume messages
3 participants