RFR 9: 8139390 : Very long classname in jimage causes SIGSEGV

Dmitry Samersoff dmitry.samersoff at oracle.com
Thu Oct 29 20:09:00 UTC 2015



    two extra bytes is accounted if moduleLen == 0

Please, add examples of valid resource name when moduleLen == 0 and/or
packageLen == 0 to comments.


On 2015-10-28 09:40, Roger Riggs wrote:
> Please review an update to the jimage reader implementation to correct the
> case where a class name is very long causing a SEGV due to buffer overruns.
> The fix will be pushed to the hs-comp repo; the bug was first spotted
> there.
> Webrev:
>    http://cr.openjdk.java.net/~rriggs//webrev-jimage-segv-8139390
> Issue:
>    https://bugs.openjdk.java.net/browse/JDK-8139390
> Thanks, Roger

Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.

More information about the jigsaw-dev mailing list