[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61960] commands/file: null pointer dereference in knetbsd tests
From: |
Lukas Fink |
Subject: |
[bug #61960] commands/file: null pointer dereference in knetbsd tests |
Date: |
Sat, 29 Jan 2022 04:19:33 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?61960>
Summary: commands/file: null pointer dereference in knetbsd
tests
Project: GNU GRUB
Submitted by: lukasfink1
Submitted on: Sat 29 Jan 2022 09:19:31 AM UTC
Category: Booting
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release:
Release: Git master
Discussion Lock: Any
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
The file command (and the grub-file utility) tries to dereference a null
pointer when a file without valid ELF header is tested by one of the knetbsd
tests:
$ grub-file --is-x86-knetbsd 0002-commands-file-Fix-null-dereference.patch
[1] 568023 segmentation fault (core dumped) grub-file --is-x86-knetbsd
0002-commands-file-Fix-null-dereference.patch
The supplied patch fixes this and also serves as an example file to reproduce
the error (even though any file without a valid ELF header should suffice).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 29 Jan 2022 09:19:31 AM UTC Name:
0002-commands-file-Fix-null-dereference.patch Size: 958B By: lukasfink1
<http://savannah.gnu.org/bugs/download.php?file_id=52771>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61960>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #61960] commands/file: null pointer dereference in knetbsd tests,
Lukas Fink <=