mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 09:48:51 +00:00
As floppym observes on the bug, this only shows up on arm because BROTLI_HUFFMAN_CODE_FAST_LOAD is only defined there. Closes: https://bugs.gentoo.org/966954 Thanks-to: Christian Schoffit <christianschoffit@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
22 lines
904 B
Diff
22 lines
904 B
Diff
https://bugs.gentoo.org/966954#c7
|
|
--- a/brotli/c/dec/decode.c
|
|
+++ b/brotli/c/dec/decode.c
|
|
@@ -434,13 +434,12 @@ static BROTLI_INLINE void PreloadSymbol(
|
|
BrotliBitReader* br,
|
|
brotli_reg_t* bits,
|
|
brotli_reg_t* value) {
|
|
- if (safe) {
|
|
- return;
|
|
+ if (!safe) {
|
|
+ BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD(table);
|
|
+ BROTLI_HC_ADJUST_TABLE_INDEX(table, BrotliGetBits(br, HUFFMAN_TABLE_BITS));
|
|
+ *bits = BROTLI_HC_FAST_LOAD_BITS(table);
|
|
+ *value = BROTLI_HC_FAST_LOAD_VALUE(table);
|
|
}
|
|
- BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD(table);
|
|
- BROTLI_HC_ADJUST_TABLE_INDEX(table, BrotliGetBits(br, HUFFMAN_TABLE_BITS));
|
|
- *bits = BROTLI_HC_FAST_LOAD_BITS(table);
|
|
- *value = BROTLI_HC_FAST_LOAD_VALUE(table);
|
|
}
|
|
|
|
/* Decodes the next Huffman code using data prepared by PreloadSymbol.
|