mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
fuzz/c/std: enlarge the brotli fuzzer's encoder dst; clarify brcat's parity claim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZ978Fjdsyig4v3wYAZRg5
This commit is contained in:
2 files changed
+11
-5
No files matched your search
@@ -132,7 +132,10 @@ static const uint8_t g_serialized_dictionary[] = {
|
||||
// at qualities 10 and 11, which are slow.
|
||||
#define ENC_MAX_INPUT 65536
|
||||
#define ENC_MAX_INPUT_HQ 4096
|
||||
#define ENC_DST_ARRAY_SIZE (2 * ENC_MAX_INPUT + 65536)
|
||||
// With 1-byte chunks and frequent flushes, each input byte can become its own
|
||||
// metablock plus a padding block (about 4 bytes per input byte at qualities 0
|
||||
// and 1), so the dst buffer is sized well above that.
|
||||
#define ENC_DST_ARRAY_SIZE (8 * ENC_MAX_INPUT + 65536)
|
||||
|
||||
static wuffs_brotli__encoder g_encoder;
|
||||
static wuffs_brotli__decoder g_rt_decoder;
|
||||
|
||||
Reference in new issue
Block a user