Merge change 6660 into donut

* changes:
  Fix a small bug in array length bounds checking.
This commit is contained in:
Android (Google) Code Review
2009-07-09 14:10:38 -07:00

View File

@@ -70,7 +70,7 @@ writeEntityData_native(JNIEnv* env, jobject clazz, int w, jbyteArray data, int s
int err; int err;
BackupDataWriter* writer = (BackupDataWriter*)w; BackupDataWriter* writer = (BackupDataWriter*)w;
if (env->GetArrayLength(data) > size) { if (env->GetArrayLength(data) < size) {
// size mismatch // size mismatch
return -1; return -1;
} }