2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
checking.
(_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
From-SVN: r41795
+2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
+
+ * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
+ checking.
+ (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
+
2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
* libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
{
// The cast to unsigned lets us save a comparison.
if (start < 0 || len < 0
- || (unsigned long) (start + len) >= (unsigned long) array->length)
+ || (unsigned long) (start + len) > (unsigned long) array->length)
{
try
{
{
// The cast to unsigned lets us save a comparison.
if (start < 0 || len < 0
- || (unsigned long) (start + len) >= (unsigned long) array->length)
+ || (unsigned long) (start + len) > (unsigned long) array->length)
{
try
{