# HG changeset patch # User thartmann # Date 1495437452 -7200 # Node ID 1f917785fbe72239c6cc78d76c657ee25a0fcba0 # Parent 0b218e67542917c8e3c7e33ef96eab74c0f7f3ff 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 0b218e675429 -r 1f917785fbe7 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 @@ -1645,6 +1645,7 @@ // Build the object to represent this state & prepare for recursive calls MachNode *mach = s->MachNodeGenerator(rule); + guarantee(mach != NULL, "Missing MachNode"); mach->_opnds[0] = s->MachOperGenerator(_reduceOp[rule]); assert( mach->_opnds[0] != NULL, "Missing result operand" ); Node *leaf = s->_leaf;