Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 801925 | Differences between
and this patch

Collapse All | Expand All

(-)a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c (-2 / +4 lines)
Lines 2033-2040 static BROTLI_NOINLINE BrotliDecoderErrorCode SafeProcessCommands( Link Here
2033
}
2033
}
2034
2034
2035
BrotliDecoderResult BrotliDecoderDecompress(
2035
BrotliDecoderResult BrotliDecoderDecompress(
2036
    size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
2036
    size_t encoded_size,
2037
    uint8_t* decoded_buffer) {
2037
    const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
2038
    size_t* decoded_size,
2039
    uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
2038
  BrotliDecoderState s;
2040
  BrotliDecoderState s;
2039
  BrotliDecoderResult result;
2041
  BrotliDecoderResult result;
2040
  size_t total_out = 0;
2042
  size_t total_out = 0;
(-)a/c/enc/encode.c (-2 / +3 lines)
Lines 1470-1477 static size_t MakeUncompressedStream( Link Here
1470
1470
1471
BROTLI_BOOL BrotliEncoderCompress(
1471
BROTLI_BOOL BrotliEncoderCompress(
1472
    int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
1472
    int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
1473
    const uint8_t* input_buffer, size_t* encoded_size,
1473
    const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
1474
    uint8_t* encoded_buffer) {
1474
    size_t* encoded_size,
1475
    uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
1475
  BrotliEncoderState* s;
1476
  BrotliEncoderState* s;
1476
  size_t out_size = *encoded_size;
1477
  size_t out_size = *encoded_size;
1477
  const uint8_t* input_start = input_buffer;
1478
  const uint8_t* input_start = input_buffer;

Return to bug 801925