bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #38331] Grub2 class names are not escaped properly


From: Tim Hardeck
Subject: [bug #38331] Grub2 class names are not escaped properly
Date: Thu, 14 Feb 2013 14:33:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0

URL:
  <http://savannah.gnu.org/bugs/?38331>

                 Summary: Grub2 class names are not escaped properly
                 Project: GNU GRUB
            Submitted by: thardeck
            Submitted on: Thu 14 Feb 2013 02:33:35 PM GMT
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 14 Feb 2013 02:33:35 PM GMT  Name:
grub2-fix-unquoted-string-in-class.patch  Size: 3kB   By: thardeck
Patch against Grub 2.0
<http://savannah.gnu.org/bugs/download.php?file_id=27462>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38331>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]