Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Aug 16:45
· 19 commits to master since this release
fix: resolve IA32 build warnings for UINT64 to UINTN conversion

Fixes Windows IA32 build failure:
- error C2220: warning treated as error
- warning C4244: conversion from 'UINT64' to 'UINTN', possible loss of data

Changes:
- Added explicit (UINTN) casts for FileInfo->FileSize when passed to functions expecting UINTN
- Added safety check to ensure file size doesn't exceed maximum UINTN value (~(UINTN)0)
- Fixed lines 229 and 249 in FsReadFileToBuffer and ValidateAcpiTable calls
- Applies to both ACPIPatcher.efi and ACPIPatcherDxe.efi (shared source)

This ensures compatibility with IA32 architecture where UINTN is 32-bit while
FileInfo->FileSize is UINT64, preventing data truncation and build failures.