Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2204298 | 7 | Staffan Larsen | P4 | Closed | Fixed | b123 |
JDK-2206174 | 6u25 | Staffan Larsen | P4 | Closed | Fixed | b01 |
jni_ReleaseStringUTFChars(JNIEnv *, jstring, const char *) frees the storage associated with the third argument by calling FreeHeap(). Under -Xcheck:jni, we should consider verifying that the C string was in fact allocated by GetStringUTFChars. This could be accomplished by allocating an extra byte or two in the checked version of GetSringUTFChars (immediately before the user pointer) and storing a magic value there, which would be verified in the subsequent Release call.
- backported by
-
JDK-2204298 -Xcheck:jni should validate char* argument to ReleaseStringUTFChars
-
- Closed
-
-
JDK-2206174 -Xcheck:jni should validate char* argument to ReleaseStringUTFChars
-
- Closed
-
- relates to
-
JDK-6502768 Windows 2003 Server at Customer setup is crashing.
-
- Closed
-