RFR(XXS) 6664815: Eliminate redundant memcpy operation in jni_GetStringUTFRegion

Andrew Gross andrew.gross at oracle.com
Thu Apr 3 21:35:35 UTC 2014


Hi,

I understand your concern.  However, this looks like a place where the 
spec allows callers to cause problems easily rather than one where we 
are causing the overflow.  While not optimal, it does not introduce a 
vulnerability.

Drew


On 4/3/2014 6:48 AM, Dmitry Samersoff wrote:
> Andrew,
>
> Could you take a look at this changes, especially on jni.cpp:3154 ?
>
> -Dmitry
>
> On 2014-04-03 17:17, Marcus Larsson wrote:
>> Hello,
>>
>> I would like reviews for the following bugfix removing a redundant memcpy.
>> Built on all platforms and tested with JCK.
>>
>> Webrev:
>> http://cr.openjdk.java.net/~dsimms/6664815/
>>
>> Bug:
>> https://bugs.openjdk.java.net/browse/JDK-6664815
>>
>> Regards,
>> Marcus
>



More information about the hotspot-runtime-dev mailing list