diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2025-01-16 15:42:13 +0100 |
---|---|---|
committer | Ard Biesheuvel <workofard@gmail.com> | 2025-01-21 13:45:46 +0100 |
commit | adf385ecab69631952bdc8b774ebd77e82b94a00 (patch) | |
tree | b8f903e65d87e4c64a43f5aa9a8545d25d68c0b2 | |
parent | 20df7c42bd446fe725bfc78cdb40577456c421d8 (diff) | |
download | edk2-adf385ecab69631952bdc8b774ebd77e82b94a00.tar.gz |
OvmfPkg/QemuKernelLoaderFsDxe: allow longer file names
QEMU_FW_CFG_FNAME_SIZE is 56. 'etc/boot/' prefix is minus 9. Add one
for the terminating '\0'. Effective max size is 48.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c b/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c index 1f63adda0b..0947b6bf2d 100644 --- a/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c +++ b/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c @@ -33,7 +33,7 @@ // Static data that hosts the fw_cfg blobs and serves file requests.
//
typedef struct {
- CHAR16 Name[8];
+ CHAR16 Name[48];
struct {
FIRMWARE_CONFIG_ITEM SizeKey;
FIRMWARE_CONFIG_ITEM DataKey;
@@ -43,7 +43,7 @@ typedef struct { typedef struct KERNEL_BLOB KERNEL_BLOB;
struct KERNEL_BLOB {
- CHAR16 Name[8];
+ CHAR16 Name[48];
UINT32 Size;
UINT8 *Data;
KERNEL_BLOB *Next;
|