changeset 13452:286c8e80795b

8180576: Null pointer dereference in Matcher::xform() Summary: Fixed a missing null check on n->in(0) found by Parfait. Reviewed-by: kvn
author thartmann
date Mon, 22 May 2017 09:18:12 +0200
parents 1f917785fbe7
children 31c842513336
files src/share/vm/opto/matcher.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/matcher.cpp	Mon May 22 09:17:32 2017 +0200
+++ b/src/share/vm/opto/matcher.cpp	Mon May 22 09:18:12 2017 +0200
@@ -1000,7 +1000,7 @@
             if (C->failing())  return NULL;
             if (m == NULL) { Matcher::soft_match_failure(); return NULL; }
           } else {                  // Nothing the matcher cares about
-            if( n->is_Proj() && n->in(0)->is_Multi()) {       // Projections?
+            if (n->is_Proj() && n->in(0) != NULL && n->in(0)->is_Multi()) {       // Projections?
               // Convert to machine-dependent projection
               m = n->in(0)->as_Multi()->match( n->as_Proj(), this );
 #ifdef ASSERT