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: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: 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
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by thardeck (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to 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 UTCphcoderStatusNone=>Fixed
    Thu 14 Feb 2013 02:33:35 PM UTCthardeckAttached File-=>Added grub2-fix-unquoted-string-in-class.patch, #27462

    Back to the top

    Powered by Savane 3.1-cleanup1