Please, review a fix for the Parfait bug: https://bugs.openjdk.java.net/browse/JDK-8175510 Webrev: http://cr.openjdk.java.net/~sspitsyn/webrevs/2017/hotspot/8175510-jplis-parfait.1/ Summary: This is the main fragment from the Parfait report: getModuleObjectjdk/src/java.instrument/share/native/libinstrument/JPLISAgent.c
The malloc can return NULL in a case of OOME. The assert at L786 checks the returned pointer for NULL but does not protect the dereference at L790. The fix is to replace the assert with printing a error message and returning with NULL from the getModuleObject(). It must be safe as the returned result is passed to the sun.instrument.InstrumentationImpl.transform() which handles null passed as in the module parameter. Thanks, Serguei |
- RFR (XS): 8175510 Null pointer dereference in g... serguei.spit...@oracle.com
- Re: RFR (XS): 8175510 Null pointer derefer... David Holmes
- Re: RFR (XS): 8175510 Null pointer der... serguei.spit...@oracle.com
- Re: RFR (XS): 8175510 Null pointer der... serguei.spit...@oracle.com
- Re: RFR (XS): 8175510 Null pointer... Chris Plummer
- Re: RFR (XS): 8175510 Null poi... serguei.spit...@oracle.com
- Re: RFR (XS): 8175510 Nul... serguei.spit...@oracle.com
- Re: RFR (XS): 8175510... Chris Plummer
- Re: RFR (XS): 817... serguei.spit...@oracle.com