Skip to content

Commit

Permalink
Change MAX_DSTSZ to 100MB because some firmware size already exceeds …
Browse files Browse the repository at this point in the history
…40MB limit (#109)

Co-authored-by: lihl11 <[email protected]>
  • Loading branch information
lihl-github and lihl11 authored Sep 13, 2022
1 parent ccdd295 commit 963ce5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uefi_firmware/compression/EfiCompressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This includes minor API changes for Tiano and EFI decompressor, as well as LZMA.
#define TIANO_COMPRESSION 2 //not defined, section type= 0x01
#define LZMA_COMPRESSION 3 //not defined, section type= 0x02

#define MAX_DSTSZ 40000000 //40MB -- Max destination buffer size allowed.
#define MAX_DSTSZ 100000000 //100MB -- Max destination buffer size allowed.
//I don't think there is an image to decompress bigger than this. In any case, feel free to change.

EFI_STATUS
Expand Down

0 comments on commit 963ce5c

Please sign in to comment.