63 lines
3.9 KiB
Diff
63 lines
3.9 KiB
Diff
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
|
|
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c 2021-12-31 14:45:31.309585049 +0100
|
|
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c 2021-12-31 14:47:10.678532132 +0100
|
|
@@ -2030,8 +2030,10 @@
|
|
}
|
|
|
|
BrotliDecoderResult BrotliDecoderDecompress(
|
|
- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
|
|
- uint8_t* decoded_buffer) {
|
|
+ size_t encoded_size,
|
|
+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
|
|
+ size_t* decoded_size,
|
|
+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
|
|
BrotliDecoderState s;
|
|
BrotliDecoderResult result;
|
|
size_t total_out = 0;
|
|
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
|
|
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c 2021-12-31 14:45:31.309585049 +0100
|
|
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c 2021-12-31 14:47:10.678532132 +0100
|
|
@@ -1470,8 +1470,9 @@
|
|
|
|
BROTLI_BOOL BrotliEncoderCompress(
|
|
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
|
- const uint8_t* input_buffer, size_t* encoded_size,
|
|
- uint8_t* encoded_buffer) {
|
|
+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
|
|
+ size_t* encoded_size,
|
|
+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
|
|
BrotliEncoderState* s;
|
|
size_t out_size = *encoded_size;
|
|
const uint8_t* input_start = input_buffer;
|
|
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c
|
|
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c 2021-12-31 14:45:09.670249908 +0100
|
|
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/dec/decode.c 2021-12-31 14:46:51.199130581 +0100
|
|
@@ -2030,8 +2030,10 @@
|
|
}
|
|
|
|
BrotliDecoderResult BrotliDecoderDecompress(
|
|
- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
|
|
- uint8_t* decoded_buffer) {
|
|
+ size_t encoded_size,
|
|
+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
|
|
+ size_t* decoded_size,
|
|
+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
|
|
BrotliDecoderState s;
|
|
BrotliDecoderResult result;
|
|
size_t total_out = 0;
|
|
diff -Naur xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c
|
|
--- xen-4.14.3.orig/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c 2021-12-31 14:45:09.670249908 +0100
|
|
+++ xen-4.14.3/tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/enc/encode.c 2021-12-31 14:46:51.199130581 +0100
|
|
@@ -1470,8 +1470,9 @@
|
|
|
|
BROTLI_BOOL BrotliEncoderCompress(
|
|
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
|
- const uint8_t* input_buffer, size_t* encoded_size,
|
|
- uint8_t* encoded_buffer) {
|
|
+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
|
|
+ size_t* encoded_size,
|
|
+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
|
|
BrotliEncoderState* s;
|
|
size_t out_size = *encoded_size;
|
|
const uint8_t* input_start = input_buffer;
|