Hi,
There was a nasty off by one error when allocating memory in
VMObjectStreamClass. The joys of C :)
2004-04-22 Mark Wielaard <mark@xxxxxxxxx>
* native/jni/java-io/java_io_VMObjectStreamClass.c
(getFieldReference): Allocate type_len + 1 bytes for type.
Committed.
Cheers,
Mark
diff -u -r1.6 java_io_VMObjectStreamClass.c
--- native/jni/java-io/java_io_VMObjectStreamClass.c 13 Apr 2004 19:41:44
-0000 1.6
+++ native/jni/java-io/java_io_VMObjectStreamClass.c 22 Apr 2004 07:58:13
-0000
@@ -186,7 +186,7 @@
}
else
{
- type = (char *) malloc(type_len);
+ type = (char *) malloc(type_len + 1);
type[type_len] = '\0';
}
signature.asc
Description: This is a digitally signed message part
_______________________________________________
Commit-classpath mailing list
Commit-classpath@xxxxxxx
http://mail.gnu.org/mailman/listinfo/commit-classpath
|