mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-06-14 04:16:15 -07:00
GetContainerHeaderSize() parses header component entries to find the offset of the end of the last component entry and checks this against ContainerHdr->DataOffset. However, there is a valid case where this can exactly equal to ContainerHdr->DataOffset, when the component alignment is small enough and there is no component auth data (AuthType is none). This check is changed to fail on greater than instead of greater or equal to cover this case. Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>