dropbox / dropbox/rust-brotli

BrotliEncoderCompressStream with empty output causes BrotliEncoderTakeOutput to panic

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
943
Forks
109
Avg merge
8d 3h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.