bugGNU GRUB - Bugs: bug #52311, completion.c:...

 
 

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

bug #52311: completion.c: GRUB_PARSER_STATE_QUOTE is checked twice

Submitted by:  AppChecker <appchecker>
Submitted on:  Mon 30 Oct 2017 05:47:50 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: None
Planned Release: None

Mon 30 Oct 2017 05:47:50 PM UTC, original submission:

Hi,
in this code fragment (http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/normal/completion.c?id=446794de8da4329ea532cbee4ca877bcafd0e534#n495):

if (*escstr == ' ' && cmdline_state != GRUB_PARSER_STATE_QUOTE
&& cmdline_state != GRUB_PARSER_STATE_QUOTE)

cmdline_state != GRUB_PARSER_STATE_QUOTE is repeated twice

Probably, is should be:
if (*escstr == ' ' && cmdline_state != GRUB_PARSER_STATE_QUOTE
&& cmdline_state != GRUB_PARSER_STATE_DQUOTE)

This possible defect found by AppChecker (https://npo-echelon.ru/en/solutions/appchecker.php)

AppChecker <appchecker>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by appchecker (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1