]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/linux: Correctly terminate load_options member
authorFrediano Ziglio <frediano.ziglio@cloud.com>
Wed, 25 Jun 2025 13:42:43 +0000 (14:42 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 26 Jun 2025 16:05:08 +0000 (18:05 +0200)
commit249db11d8fc365476b45103ccef4b14361d70b7e
treefd3ac32d3af3797cf51262dab391c3eb46385590
parentf3b339af11b4d5db6457c64283a56dca56e69305
loader/efi/linux: Correctly terminate load_options member

If a simple string for arguments are passed it should be NUL terminated.
This is true for other code but not for "linux" command.

Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/linux.c