summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-dotnet/mono/files/mono-1.0-segv.diff')
-rw-r--r--dev-dotnet/mono/files/mono-1.0-segv.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-dotnet/mono/files/mono-1.0-segv.diff b/dev-dotnet/mono/files/mono-1.0-segv.diff
new file mode 100644
index 000000000000..858a75f60cbf
--- /dev/null
+++ b/dev-dotnet/mono/files/mono-1.0-segv.diff
@@ -0,0 +1,11 @@
+--- mono-0.97/mono/interpreter/interp.c.orig 2004-06-26 17:55:52.739575943 +0200
++++ mono-0.97/mono/interpreter/interp.c 2004-06-26 17:54:44.489967101 +0200
+@@ -1164,7 +1164,7 @@
+ }
+ }
+
+- if (method->klass->valuetype)
++ if (method->klass->valuetype && obj)
+ /* Unbox the instance, since valuetype methods expect an interior pointer. */
+ obj = mono_object_unbox (obj);
+