tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

woff2-rlbox.patch (921B)


      1 diff --git a/src/woff2_dec.cc b/src/woff2_dec.cc
      2 --- a/src/woff2_dec.cc
      3 +++ b/src/woff2_dec.cc
      4 @@ -19,7 +19,6 @@
      5 #include <memory>
      6 #include <utility>
      7 
      8 -#include <brotli/decode.h>
      9 #include "./buffer.h"
     10 #include "./port.h"
     11 #include "./round.h"
     12 @@ -28,6 +27,8 @@
     13 #include "./variable_length.h"
     14 #include "./woff2_common.h"
     15 
     16 +#include "../RLBoxWOFF2Sandbox.h"
     17 +
     18 namespace woff2 {
     19 
     20 namespace {
     21 @@ -758,7 +759,7 @@ bool ReconstructTransformedHmtx(const uint8_t* transformed_buf,
     22 bool Woff2Uncompress(uint8_t* dst_buf, size_t dst_size,
     23   const uint8_t* src_buf, size_t src_size) {
     24   size_t uncompressed_size = dst_size;
     25 -  BrotliDecoderResult result = BrotliDecoderDecompress(
     26 +  BrotliDecoderResult result = RLBoxBrotliDecoderDecompress(
     27       src_size, src_buf, &uncompressed_size, dst_buf);
     28   if (PREDICT_FALSE(result != BROTLI_DECODER_RESULT_SUCCESS ||
     29                     uncompressed_size != dst_size)) {