Re: [PATCH 1/1] util/grub-mkrescue: Check existence of option arguments

2024-06-19 Thread Daniel Kiper
On Mon, Jun 17, 2024 at 09:03:00PM +0200, Thomas Schmitt via Grub-devel wrote: > As reported by Victoriia Egorova in bug 65880, grub-mkrescue does not > verify that the expected argument of an option like -d or -k does really > exist in argv. > So check the loop counter before incrementing it insid

[PATCH 1/1] util/grub-mkrescue: Check existence of option arguments

2024-06-17 Thread Thomas Schmitt via Grub-devel
As reported by Victoriia Egorova in bug 65880, grub-mkrescue does not verify that the expected argument of an option like -d or -k does really exist in argv. So check the loop counter before incrementing it inside the loop which copies argv to argp_argv. Issue an error message similar to what older