mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
script: allow encoder parity workbufs of up to 12 GiB, link libbrotlidec
This commit is contained in:
1 file changed
+2
-2
@@ -52,7 +52,7 @@
|
|||||||
// Run it from the Wuffs root directory with:
|
// Run it from the Wuffs root directory with:
|
||||||
//
|
//
|
||||||
// gcc -O2 -std=c99 script/manual-test-brotli-encoder-parity.c
|
// 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).
|
// (as one command line).
|
||||||
// /tmp/brotli-enc-parity
|
// /tmp/brotli-enc-parity
|
||||||
@@ -375,7 +375,7 @@ static bool //
|
|||||||
grow_workbuf(uint64_t n) {
|
grow_workbuf(uint64_t n) {
|
||||||
if (n <= g_workbuf_len) {
|
if (n <= g_workbuf_len) {
|
||||||
return true;
|
return true;
|
||||||
} else if (n > ((uint64_t)3 << 30)) {
|
} else if (n > ((uint64_t)12 << 30)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
uint8_t* p = realloc(g_workbuf, (size_t)n);
|
uint8_t* p = realloc(g_workbuf, (size_t)n);
|
||||||
|
|||||||
Reference in new issue
Block a user