diff options
Diffstat (limited to 'app-text/ghostscript-gpl/files/ghostscript-gpl-10.06.0-arm-brotli.patch')
| -rw-r--r-- | app-text/ghostscript-gpl/files/ghostscript-gpl-10.06.0-arm-brotli.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-10.06.0-arm-brotli.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-10.06.0-arm-brotli.patch new file mode 100644 index 000000000000..5c257062a5a6 --- /dev/null +++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-10.06.0-arm-brotli.patch @@ -0,0 +1,22 @@ +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. |
