X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FBrotliCustomDecompressLib%2FBrotliDecompress.c;h=4b10b409761cd74ac03c8868ab85be2fc867ee35;hp=a30392148f94dcb1f573cdbd03189d61c62d054e;hb=792ace0ac391c37c1299322340abdf74e2603795;hpb=89b1612fcf76b8b30d4770c982bcb9dd6ca47cf5;ds=sidebyside diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c index a30392148f..4b10b40976 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompress.c @@ -1,7 +1,7 @@ /** @file Brotli Decompress interfaces - Copyright (c) 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -17,7 +17,7 @@ Dummy malloc function for compiler. **/ VOID * -malloc ( +BrDummyMalloc ( IN size_t Size ) { @@ -29,7 +29,7 @@ malloc ( Dummy free function for compiler. **/ VOID -free ( +BrDummyFree ( IN VOID * Ptr ) { @@ -198,7 +198,7 @@ BrotliDecompress ( @return The size of the uncompressed buffer. **/ UINT64 -GetDecodedSizeOfBuf( +BrGetDecodedSizeOfBuf( IN UINT8 * EncodedData, IN UINT8 StartOffset, IN UINT8 EndOffset @@ -259,10 +259,10 @@ BrotliUefiDecompressGetInfo ( ASSERT(SourceSize >= BROTLI_SCRATCH_MAX); MaxOffset = BROTLI_DECODE_MAX; - GetSize = GetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); + GetSize = BrGetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); *DestinationSize = (UINT32)GetSize; MaxOffset = BROTLI_SCRATCH_MAX; - GetSize = GetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); + GetSize = BrGetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); *ScratchSize = (UINT32)GetSize; return EFI_SUCCESS; } @@ -305,7 +305,7 @@ BrotliUefiDecompress ( UINT8 MaxOffset; MaxOffset = BROTLI_SCRATCH_MAX; - GetSize = GetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); + GetSize = BrGetDecodedSizeOfBuf((UINT8 *)Source, MaxOffset - BROTLI_INFO_SIZE, MaxOffset); BroBuff.Buff = Scratch; BroBuff.BuffSize = (UINTN)GetSize;