bugDotGNU Portable.NET - Bugs: bug #8655, cscc/cscc.c - AddArgument adds...

 
 

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

bug #8655: cscc/cscc.c - AddArgument adds garbage (v0.6.4)

Submitted by:  None
Submitted on:  Thu 22 Apr 2004 02:27:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 22 Apr 2004 03:01:38 PM UTC, comment #3:

Fixed on 22nd April 2004

Gopal.V <t3rmin4t0r>
Project Administrator
Thu 22 Apr 2004 02:59:25 PM UTC, comment #2:

Actually in this case it creates a 16 element array :)
Fixing in a few minutes

Gopal.V <t3rmin4t0r>
Project Administrator
Thu 22 Apr 2004 02:28:41 PM UTC, comment #1:

Please email me at maciek(at)mil-sim(dot)net if you need more info

Anonymous
Thu 22 Apr 2004 02:27:12 PM UTC, original submission:

When adding only one argument with AddArgument to an empty array of strings, 2 elements are actually created, e.g.:

---

char **cmdline;
int cmdline_size;

cmdline = 0;
cmdline_size = 0;

AddArgument(&cmdline, &cmdline_size, "ilasm");

---
cmdline will now contain 2 elements:

cmdline[0] = "ilasm"
cmdline[1] = random garbage

when the second element should in fact contain NULL

Anonymous

 

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

Date Changed By Updated Field Previous Value => Replaced By
Thu 22 Apr 2004 03:01:38 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 22 Apr 2004 02:59:25 PM UTCt3rmin4t0rCarbon-Copy-=>Added maciek --AT-- mil-sim --DOT-- net

Back to the top


Powered by Savane 3.1-cleanup1