RFR 9: 8139390 : Very long classname in jimage causes SIGSEGV
mandy.chung at oracle.com
Thu Oct 29 21:01:31 UTC 2015
Resource file of zero-length module name and package name should not be allowed to be written to jimage. The moduleName > 0 and packageName > 0 should be an assertion; exception if fails.
> On Oct 29, 2015, at 1:09 PM, Dmitry Samersoff <dmitry.samersoff at oracle.com> wrote:
> 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
>> 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