bugGNU GRUB - Bugs: bug #38331, Grub2 class names are not escaped...

 
 

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

bug #38331: Grub2 class names are not escaped properly

Submitter:  - <_90546>
Submitted:  Thu 14 Feb 2013 02:33:35 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 14 Feb 2013 02:33:35 PM UTC, original submission:  

Grub 2.0 does not escape the ${GRUB_DISTRIBUTOR} variable properly for the class parameter.
If the variable consists special characters like apostrophes the grub.cfg can't be parsed because of syntax errors on the next boot.

For example:
 menuentry 'Tim'\''s JeOS, with Linux 3.7.6-1.2-default (recovery mode)'
--class tim's --class gnu-linux --class gnu[....]

The attached patch fixes the issue by replacing all special characters with "-".

The downstream bug report is: https://bugzilla.novell.com/show_bug.cgi?id=788322

- <_90546>

 

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

Attached Files
file #27462:  grub2-fix-unquoted-string-in-class.patch added by _90546 (3KiB - text/x-patch - Patch against Grub 2.0)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by _90546 (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-23 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2013-02-14 _90546 Attached File- Added grub2-fix-unquoted-string-in-class.patch, #27462

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code