From 3f60ead4fca3685bcd49e63485ab1bcf377c7728 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 27 Oct 2026 06:10:02 +0000 Subject: [PATCH] script: allow encoder parity workbufs of up to 12 GiB, link libbrotlidec --- script/manual-test-brotli-encoder-parity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/manual-test-brotli-encoder-parity.c b/script/manual-test-brotli-encoder-parity.c index a512cd3f..edddc495 100644 --- a/script/manual-test-brotli-encoder-parity.c +++ b/script/manual-test-brotli-encoder-parity.c @@ -52,7 +52,7 @@ // Run it from the Wuffs root directory with: // // gcc -O2 -std=c99 script/manual-test-brotli-encoder-parity.c -// -lbrotlienc -lbrotlicommon -lm -o /tmp/brotli-enc-parity +// -lbrotlienc -lbrotlidec -lbrotlicommon -lm -o /tmp/brotli-enc-parity // // (as one command line). // /tmp/brotli-enc-parity @@ -375,7 +375,7 @@ static bool // grow_workbuf(uint64_t n) { if (n <= g_workbuf_len) { return true; - } else if (n > ((uint64_t)3 << 30)) { + } else if (n > ((uint64_t)12 << 30)) { return false; } uint8_t* p = realloc(g_workbuf, (size_t)n);