# HG changeset patch # User thartmann # Date 1495437452 -7200 # Node ID 241128a2c3ce389099b38028ffea18b5812d8f3f # Parent cef572e3f5a6ac202a6813d81ede60c21ca2c16c 8180511: Null pointer dereference in Matcher::ReduceInst() Summary: Fixed a missing null check on the return value of MachNodeGenerator() found by Parfait. Reviewed-by: kvn diff -r cef572e3f5a6 -r 241128a2c3ce src/share/vm/opto/matcher.cpp --- a/src/share/vm/opto/matcher.cpp Mon May 22 09:16:46 2017 +0200 +++ b/src/share/vm/opto/matcher.cpp Mon May 22 09:17:32 2017 +0200 @@ -1657,6 +1657,7 @@ // Build the object to represent this state & prepare for recursive calls MachNode *mach = s->MachNodeGenerator( rule, C ); + guarantee(mach != NULL, "Missing MachNode"); mach->_opnds[0] = s->MachOperGenerator( _reduceOp[rule], C ); assert( mach->_opnds[0] != NULL, "Missing result operand" ); Node *leaf = s->_leaf;