[Mono-bugs] [Bug 623653] [verifier] SIGSEGV in concat_two_strings_with_zero on a bad assembly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 19 16:44:51 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=623653
http://bugzilla.novell.com/show_bug.cgi?id=623653#c1
--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2010-07-19 20:44:51 UTC ---
I'm using the following patch to resume fuzzing.
Index: mono/metadata/class.c
===================================================================
--- mono/metadata/class.c (revision 160387)
+++ mono/metadata/class.c (working copy)
@@ -4371,7 +4371,8 @@
static char*
concat_two_strings_with_zero (MonoImage *image, const char *s1, const char
*s2)
{
- int len = strlen (s1) + strlen (s2) + 2;
+ int null_length = strlen ("(null)");
+ int len = (s1 ? strlen (s1) : null_length) + (s2 ? strlen (s2) :
null_length) + 2;
char *s = mono_image_alloc (image, len);
int result;
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list