RFR(xs): 8155574: ClassLoader::initialize_module_loader_map crashes if the char_buf is not NULL terminated

Calvin Cheung calvin.cheung at oracle.com
Fri May 6 04:29:49 UTC 2016


Thanks, Jiangli.
Calvin

On 5/5/16, 9:03 PM, Jiangli Zhou wrote:
> Hi Calvin,
>
> Looks good.
>
> Thanks,
> Jiangli
>
>> On May 5, 2016, at 11:20 AM, Calvin Cheung<calvin.cheung at oracle.com>  wrote:
>>
>>
>> Please review this small change for fixing char_buf may not be NULL terminated.
>> Instead of finding the length of char_buf by using strlen(), this fix uses the size returned from JImageFindResource().
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-8155574
>> webrev: http://cr.openjdk.java.net/~ccheung/8155574/webrev.00/
>>
>> Testing:
>>     JPRT
>>     RBT on hotspot_runtime
>>
>> thanks,
>> Calvin


More information about the hotspot-runtime-dev mailing list