Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrotliEncoderCompressStream with empty output causes BrotliEncoderTakeOutput to panic #44

Open
DoumanAsh opened this issue Dec 31, 2019 · 0 comments

Comments

@DoumanAsh
Copy link

DoumanAsh commented Dec 31, 2019

It is a bit not clear whether encoder has own internal buffer like C library.
This panic happens when I feed empty next_out_array slice, and want to use BrotliEncoderTakeOutput result to write data without using own temporarely storage.

So just wanted to clarify if BrotliEncoderCompressStream can be used with empty next_out_array

P.s. it also seem to happen only when I push multiple chunks

@DoumanAsh DoumanAsh changed the title BrotliEncoderCompressStream with empty output results in BrotliEncoderTakeOutput panic BrotliEncoderCompressStream with empty output causes BrotliEncoderTakeOutput to panic Dec 31, 2019
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

No branches or pull requests

1 participant