mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
[HCI] Display "Not an executable image" when appropriate
PXE is a catch-all image format with no signature checks. If an unsupported image file is loaded, it will be treated as a PXE image. In most cases, the image will be too large to be loaded as a PXE image (which has to fit in base memory), so the error returned to the user will be that the segment could not fit within the memory region. Add an explicit check to pxe_image.c to reject images larger than base memory with ENOEXEC. Add ENOEXEC to the error string table.
This commit is contained in:
@@ -118,4 +118,5 @@ struct errortab common_errors[] __errortab = {
|
||||
{ ETIMEDOUT, "Connection timed out" },
|
||||
{ EPIPE, "Broken pipe" },
|
||||
{ ECANCELED, "Operation cancelled" },
|
||||
{ ENOEXEC, "Not an executable image" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user