[Mono-bugs] [Bug 74569][Maj] New - mkbundle mangles arguments

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 11 Apr 2005 11:22:55 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by james@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74569

--- shadow/74569	2005-04-11 11:22:55.000000000 -0400
+++ shadow/74569.tmp.9779	2005-04-11 11:22:55.000000000 -0400
@@ -0,0 +1,25 @@
+Bug#: 74569
+Product: Mono: Tools
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: tools
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: james@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: mkbundle mangles arguments
+
+When mkbundle creates the new arguments to pass to mono, it does not
+allocate enough memory.  It uses the following:
+
+        char **newargs = (char **) malloc (sizeof (char *) * argc + 2);
+
+instead of:
+
+        char **newargs = (char **) malloc (sizeof (char *) * (argc + 2));