mainThe GNU Bourne-Again SHell - Support: sr #108283, Problem in execute_cmd.c if...

 
 

sr #108283: Problem in execute_cmd.c if configuration not COND_COMMAND and (DPAREN_ARITHMETIC or ARITH_FOR_COMMAND) is set.

Submitter:  Flávio Medeiros <flaviommedeiros>
Submitted:  Sun 14 Apr 2013 04:39:06 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  Mac OS
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 14 Apr 2013 04:39:06 PM UTC, original submission:  

Problem in execute_cmd.c if configuration not COND_COMMAND and (DPAREN_ARITHMETIC or ARITH_FOR_COMMAND) is set. In this case, we can have a preprocessed code with an ELSE IF statement without an IF statement in function executing_line_number. The code part is shown bellow:

#if defined (COND_COMMAND)
      if (currently_executing_command->type == cm_cond)
return currently_executing_command->value.Cond->line;
#endif
#if defined (DPAREN_ARITHMETIC)
      else if (currently_executing_command->type == cm_arith)
return currently_executing_command->value.Arith->line;
#endif
#if defined (ARITH_FOR_COMMAND)
      else if (currently_executing_command->type == cm_arith_for)
return currently_executing_command->value.ArithFor->line;
#endif

The correction is attached in file (execute_cmd-modified-flaviomedeiros.c).

Flávio Medeiros <flaviommedeiros>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #27870:  execute_cmd-modified-flaviomedeiros.c added by flaviommedeiros (139KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-13 chet StatusNone Done
    2013-04-14 flaviommedeiros Attached File- Added execute_cmd-modified-flaviomedeiros.c, #27870

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code