bugmake - Bugs: bug #14769, Make return value may be random

 
 

bug #14769: Make return value may be random

Submitted by:  None
Submitted on:  Tue 11 Oct 2005 08:43:40 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.79.1Operating System: MS Windows
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 12 Oct 2005 03:18:12 PM UTC, comment #1:

Forget it, I missed the absence of break.

Anonymous
Tue 11 Oct 2005 08:43:40 PM UTC, original submission:

Under certain circumpstances, the return value of make may be totally random. The returned variable, int status, is not initialized and not set under all conditions:

int status; // <-- Defined here

/* SNIP */

switch (update_goal_chain (goals, 0))
{
case -1:
/* Nothing happened. */ // <-- No value set here
case 0:
/* Updated successfully. */
status = EXIT_SUCCESS;
break;
case 2:
/* Updating failed. POSIX.2 specifies exit status >1 for this;
but in VMS, there is only success and failure. */
status = EXIT_FAILURE ? 2 : EXIT_FAILURE;
break;
case 1:
/* We are under -q and would run some commands. */
status = EXIT_FAILURE;
break;
default:
abort ();
}

/* SNIP */

/* Exit. */
die (status); // <-- Used here without value

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 12 Oct 2005 03:49:24 PM UTCpsmithStatusNone=>Not A Bug
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1