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

Submitted by:  Tim Hardeck <thardeck>
Submitted on:  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: 
Release:  other 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

Tim Hardeck <thardeck>


Attached Files
file #27462:  grub2-fix-unquoted-string-in-class.patch added by thardeck (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 thardeck (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Mon 23 Sep 2013 03:56:36 PM UTC phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed
    Thu 14 Feb 2013 02:33:35 PM UTC thardeck Attached File- => Added grub2-fix-unquoted-string-in-class.patch, #27462

    Back to the top

    Powered by Savane 3.3