On 24/10/25 11:26, Vishal Chourasia wrote:
Currently load_image_targphys_as() returns -1 on file open failure or
when max size is exceeded. Add an explicit check for zero-sized files
to catch this error early, since some callers check for size <= 0.

Signed-off-by: Vishal Chourasia <[email protected]>
---
  hw/core/loader.c | 5 +++++
  1 file changed, 5 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to