Re: [PATCH] commands/file: Fix null dereference in the knetbsd tests

2025-02-20 Thread Daniel Kiper
On Tue, Jan 14, 2025 at 12:46:08PM -0800, Ross Philipson via Grub-devel wrote: > On 1/5/25 12:24 AM, Glenn Washburn wrote: > > From: Lukas Fink > > > > The pointer returned by grub_elf_file() is not checked to verify it is not > > null before use. A null pointer may be returned when the given file

Re: [PATCH] commands/file: Fix null dereference in the knetbsd tests

2025-01-14 Thread Ross Philipson via Grub-devel
On 1/5/25 12:24 AM, Glenn Washburn wrote: From: Lukas Fink The pointer returned by grub_elf_file() is not checked to verify it is not null before use. A null pointer may be returned when the given file does not have a valid ELF header. Indeed or for a number of other reasons. Also other place

[PATCH] commands/file: Fix null dereference in the knetbsd tests

2025-01-05 Thread Glenn Washburn
From: Lukas Fink The pointer returned by grub_elf_file() is not checked to verify it is not null before use. A null pointer may be returned when the given file does not have a valid ELF header. Fixes: https://savannah.gnu.org/bugs/?61960 Signed-off-by: Lukas Fink Signed-off-by: Glenn Washburn