summaryrefslogtreecommitdiff
path: root/runtime/native/dalvik_system_DexFile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/native/dalvik_system_DexFile.cc')
-rw-r--r--runtime/native/dalvik_system_DexFile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_DexFile.cc b/runtime/native/dalvik_system_DexFile.cc
index daf02fe69f..4f9cf70efd 100644
--- a/runtime/native/dalvik_system_DexFile.cc
+++ b/runtime/native/dalvik_system_DexFile.cc
@@ -244,7 +244,7 @@ static jobject DexFile_createCookieWithDirectBuffer(JNIEnv* env,
}
size_t length = static_cast<size_t>(end - start);
- memcpy(dex_mem_map.Begin(), base_address, length);
+ memcpy(dex_mem_map.Begin(), base_address + start, length);
return CreateSingleDexFileCookie(env, std::move(dex_mem_map));
}