diff options
author | Song, BinX <binx.song@intel.com> | 2017-04-07 14:52:15 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-04-12 14:37:58 +0800 |
commit | 36a0d5cab8c9a6ad628ca8e6ccb5d63ed87a53dd (patch) | |
tree | 1aa1e86cf3f328e03e53cdcd85740035f11881f1 /MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c | |
parent | d3e0c996d5ba661f3429cb616b9a2792d90e9e47 (diff) | |
download | edk2-36a0d5cab8c9a6ad628ca8e6ccb5d63ed87a53dd.tar.gz edk2-36a0d5cab8c9a6ad628ca8e6ccb5d63ed87a53dd.tar.bz2 edk2-36a0d5cab8c9a6ad628ca8e6ccb5d63ed87a53dd.zip |
MdeModulePkg: Fix BrotliCustomDecompressLib potential issue
- Fix BrotliCustomDecompressLib potential issue
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bell Song <binx.song@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c')
-rw-r--r-- | MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c index 2c2648a83d..a30392148f 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c @@ -126,6 +126,7 @@ BrotliDecompress ( BrotliState * BroState;
VOID * Temp;
+ TotalOut = 0;
AvailableOut = FILE_BUFFER_SIZE;
Result = BROTLI_RESULT_ERROR;
BroState = BrotliCreateState(BrAlloc, BrFree, BuffInfo);
|