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)

Submitter:  None
Submitted:  Thu 22 Apr 2004 02:27:12 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

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

Fixed on 22nd April 2004

Gopal.V <t3rmin4t0r>
Group 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>
Group 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

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-04-22 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-04-22 t3rmin4t0r Carbon-Copy- Added maciek --AT-- mil-sim --DOT-- net

Back to the top

Powered by Savane 3.12