Author: spouliot
Date: 2007-06-20 11:47:48 -0400 (Wed, 20 Jun 2007)
New Revision: 80324
Modified:
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/plugin-class.cpp
Log:
2007-06-20 Sebastien Pouliot <[EMAIL PROTECTED]>
* plugin-class.cpp: Alloc one byte to set it to NULL so we don't
write to unallocated memory.
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-20 15:46:28 UTC (rev 80323)
+++ trunk/moon/plugin/ChangeLog 2007-06-20 15:47:48 UTC (rev 80324)
@@ -1,3 +1,8 @@
+2007-06-20 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * plugin-class.cpp: Alloc one byte to set it to NULL so we don't
+ write to unallocated memory.
+
2007-06-20 Chris Toshok <[EMAIL PROTECTED]>
* plugin.cpp (PluginInstance::Write): it turns out the "offset"
Modified: trunk/moon/plugin/plugin-class.cpp
===================================================================
--- trunk/moon/plugin/plugin-class.cpp 2007-06-20 15:46:28 UTC (rev 80323)
+++ trunk/moon/plugin/plugin-class.cpp 2007-06-20 15:47:48 UTC (rev 80324)
@@ -231,7 +231,7 @@
strcpy (retval, value);
} else {
len = 0;
- retval = (char *) NPN_MemAlloc (len);
+ retval = (char *) NPN_MemAlloc (1);
retval[0] = 0;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches