diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-09 14:12:48 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-07-09 14:12:48 -0700 |
commit | 191c12d33fe33c938beb421004c55fb827208f48 (patch) | |
tree | 5e2a236241b71d2a71c08958c82ccf58a9d4eedc | |
parent | ec696c0115bbc915417bd76af6432bc603b680d2 (diff) | |
parent | 16f676f4f8ae3807b5cb40086048e48cae4be3cf (diff) | |
download | frameworks_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.cpp | 2 |
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; } |