commit | 6d877383bc2e2952cad48780c410ed452870a5a4 | [log] [tgz] |
---|---|---|
author | Dan Egnor <egnor@google.com> | Thu Jul 09 13:48:36 2009 -0700 |
committer | Dan Egnor <egnor@google.com> | Thu Jul 09 13:48:36 2009 -0700 |
tree | bd685a14b19bb04e16cd470e451a2ef9a3ebf622 | |
parent | d6fe243c1c6d5e994cacede8110eef736767bd7f [diff] |
Fix a small bug in array length bounds checking.
diff --git a/core/jni/android_backup_BackupDataOutput.cpp b/core/jni/android_backup_BackupDataOutput.cpp index d02590e..ce30aaa8 100644 --- a/core/jni/android_backup_BackupDataOutput.cpp +++ b/core/jni/android_backup_BackupDataOutput.cpp
@@ -70,7 +70,7 @@ int err; BackupDataWriter* writer = (BackupDataWriter*)w; - if (env->GetArrayLength(data) > size) { + if (env->GetArrayLength(data) < size) { // size mismatch return -1; }