8180413: avoid accessing NULL in jdk.jdwp.agent
authormbaesken
Tue, 16 May 2017 10:52:30 +0200
changeset 45380 ba9e1e3dedf1
parent 45379 5e07cb61bff2
child 45381 af5e9020aac8
8180413: avoid accessing NULL in jdk.jdwp.agent Reviewed-by: clanger, dsamersoff, sspitsyn
jdk/src/jdk.jdwp.agent/share/native/libjdwp/util.c
--- a/jdk/src/jdk.jdwp.agent/share/native/libjdwp/util.c	Fri Jun 02 12:31:28 2017 +0530
+++ b/jdk/src/jdk.jdwp.agent/share/native/libjdwp/util.c	Tue May 16 10:52:30 2017 +0200
@@ -2421,7 +2421,6 @@
     /* Check data structure */
     data = (ClassInstancesData*)user_data;
     if (data == NULL) {
-        data->error = AGENT_ERROR_ILLEGAL_ARGUMENT;
         return JVMTI_VISIT_ABORT;
     }
 
@@ -2540,7 +2539,6 @@
     /* Check data structure */
     data = (ClassCountData*)user_data;
     if (data == NULL) {
-        data->error = AGENT_ERROR_ILLEGAL_ARGUMENT;
         return JVMTI_VISIT_ABORT;
     }
 
@@ -2598,7 +2596,6 @@
     /* Check data structure */
     data = (ClassCountData*)user_data;
     if (data == NULL) {
-        data->error = AGENT_ERROR_ILLEGAL_ARGUMENT;
         return JVMTI_VISIT_ABORT;
     }
 
@@ -2757,7 +2754,6 @@
     /* Check data structure */
     data = (ReferrerData*)user_data;
     if (data == NULL) {
-        data->error = AGENT_ERROR_ILLEGAL_ARGUMENT;
         return JVMTI_VISIT_ABORT;
     }