Protect SuperPMI from crashes calling jitStartup
authorBruce Forstall <brucefo@microsoft.com>
Thu, 12 Apr 2018 20:55:15 +0000 (13:55 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Thu, 12 Apr 2018 20:55:15 +0000 (13:55 -0700)
commit8ea2fbd76ad9a893c66db2fbc79bf2f9047b4f4b
tree7a6219284cc7855ed79f5723fe475d69a555c6e5
parent4eb8b37996a8e7f3b1b65e8cec4d9d4dd42e5b4e
Protect SuperPMI from crashes calling jitStartup

When we call jitStartup, we pass a JitHost interface that the JIT
calls to query for data. These queries look up in the recorded
MCH data, and could fail (and throw an exception) if data is
missing, which it can be for running non-matching altjit against
a collection. Protect these calls with exception handling.
src/ToolBox/superpmi/superpmi/jitinstance.cpp
src/ToolBox/superpmi/superpmi/jitinstance.h