bugGNU GRUB - Bugs: bug #61960, commands/file: null pointer...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61960: commands/file: null pointer dereference in knetbsd tests

Submitter:  Lukas Fink <lukasfink1>
Submitted:  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: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 29 Jan 2022 09:19:31 AM UTC, original submission:  

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).

Lukas Fink <lukasfink1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lukasfink1 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-29 lukasfink1 Attached File- Added 0002-commands-file-Fix-null-dereference.patch, #52771

    Back to the top

    Powered by Savane 3.13-54b4.
    Corresponding source code