mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Zero-sized extents should not be cached nor considered valid, as they have no meaning. As such, reject them outright when caching extents. This makes it so callers do not need to check for ee_len = 0 before using the result, which, if not done, can result in possible infinite loops. Cc: Marvin Häuser <mhaeuser@posteo.de> Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.") Reported-by: Savva Mitrofanov <savvamtr@gmail.com> Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>