mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6753795: HotSpot crash in strlen() when JVMTI is used
Test for null instead of strlen Reviewed-by: rasbold
This commit is contained in:
parent
ac161a1e17
commit
d40b6daac9
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ JvmtiEnvBase::JvmtiEnvBase() : _env_event_enable() {
|
|||
JvmtiEventController::env_initialize((JvmtiEnv*)this);
|
||||
|
||||
#ifdef JVMTI_TRACE
|
||||
_jvmti_external.functions = strlen(TraceJVMTI)? &jvmtiTrace_Interface : &jvmti_Interface;
|
||||
_jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
|
||||
#else
|
||||
_jvmti_external.functions = &jvmti_Interface;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue