diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51c794a..f185810 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build_sdist: name: Build sdist - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout source uses: actions/checkout@v3 @@ -64,7 +64,7 @@ jobs: publish_pypi: name: Publish artifacts to PyPI - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') needs: [build_sdist, build_wheels] permissions: diff --git a/uefi_firmware/compression/Include/CompressionTypes.h b/uefi_firmware/compression/Include/CompressionTypes.h index 3869395..253fb0d 100644 --- a/uefi_firmware/compression/Include/CompressionTypes.h +++ b/uefi_firmware/compression/Include/CompressionTypes.h @@ -39,7 +39,7 @@ EFI_STATUS typedef EFI_STATUS (*GETINFO_FUNCTION) ( - IN VOID *Source, + IN CONST VOID *Source, IN size_t SrcSize, OUT size_t *DstSize, OUT size_t *ScratchSize @@ -48,7 +48,7 @@ EFI_STATUS typedef EFI_STATUS (*DECOMPRESS_FUNCTION) ( - IN VOID *Source, + IN CONST VOID *Source, IN size_t SrcSize, IN OUT VOID *Destination, IN size_t DstSize, diff --git a/uefi_firmware/compression/LZMA/LzmaDecompress.c b/uefi_firmware/compression/LZMA/LzmaDecompress.c index 7e3a9ea..ba7fd9a 100644 --- a/uefi_firmware/compression/LZMA/LzmaDecompress.c +++ b/uefi_firmware/compression/LZMA/LzmaDecompress.c @@ -89,8 +89,8 @@ EFI_STATUS EFIAPI LzmaGetInfo ( CONST VOID *Source, - UINT32 SourceSize, - UINT32 *DestinationSize + size_t SourceSize, + size_t *DestinationSize ) { UINT64 DecodedSize; @@ -131,8 +131,11 @@ EFI_STATUS EFIAPI LzmaDecompress ( CONST VOID *Source, - UINT32 SourceSize, - VOID *Destination + size_t SourceSize, + VOID *Destination, + size_t _DestinationSize, + VOID *_Scratch, + size_t _ScratchSize ) { SRes LzmaResult;