summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-09 14:12:48 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-07-09 14:12:48 -0700
commit191c12d33fe33c938beb421004c55fb827208f48 (patch)
tree5e2a236241b71d2a71c08958c82ccf58a9d4eedc
parentec696c0115bbc915417bd76af6432bc603b680d2 (diff)
parent16f676f4f8ae3807b5cb40086048e48cae4be3cf (diff)
downloadframeworks_base-191c12d33fe33c938beb421004c55fb827208f48.zip
frameworks_base-191c12d33fe33c938beb421004c55fb827208f48.tar.gz
frameworks_base-191c12d33fe33c938beb421004c55fb827208f48.tar.bz2
am 16f676f4: Merge change 6660 into donut
Merge commit '16f676f4f8ae3807b5cb40086048e48cae4be3cf' * commit '16f676f4f8ae3807b5cb40086048e48cae4be3cf': Fix a small bug in array length bounds checking.
-rw-r--r--core/jni/android_backup_BackupDataOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_backup_BackupDataOutput.cpp b/core/jni/android_backup_BackupDataOutput.cpp
index d02590e..ce30aaa 100644
--- a/core/jni/android_backup_BackupDataOutput.cpp
+++ b/core/jni/android_backup_BackupDataOutput.cpp
@@ -70,7 +70,7 @@ writeEntityData_native(JNIEnv* env, jobject clazz, int w, jbyteArray data, int s
int err;
BackupDataWriter* writer = (BackupDataWriter*)w;
- if (env->GetArrayLength(data) > size) {
+ if (env->GetArrayLength(data) < size) {
// size mismatch
return -1;
}