diff options
author | 2023-03-06 16:40:21 +0000 | |
---|---|---|
committer | 2023-03-06 21:42:40 +0000 | |
commit | 14dc1bc6a3480f9dbb78b02cae49e457b8e270a5 (patch) | |
tree | c36583dcd03cb6820f80a4c9aed43892145fb8d6 /libdexfile/dex/dex_file_loader.cc | |
parent | 4c833fd86db2ebfe68b049bd14549bec5b33a95d (diff) |
Simplify dex::Verify call
We always pass dex_file->{Begin,End} as the range,
so remove the arguments and use the provided dex_file.
Bug: 266950186
Test: test.py -b --host --optimizing --64
Change-Id: I2361b1b4d9c9fafd180b2cab98c272847383c361
Diffstat (limited to 'libdexfile/dex/dex_file_loader.cc')
-rw-r--r-- | libdexfile/dex/dex_file_loader.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libdexfile/dex/dex_file_loader.cc b/libdexfile/dex/dex_file_loader.cc index 5d5cd4ccbe..bd5863aec4 100644 --- a/libdexfile/dex/dex_file_loader.cc +++ b/libdexfile/dex/dex_file_loader.cc @@ -380,12 +380,7 @@ std::unique_ptr<DexFile> DexFileLoader::OpenCommon( // NB: Dex verifier does not understand the compact dex format. if (verify && !dex_file->IsCompactDexFile()) { ScopedTrace trace(std::string("Verify dex file ") + location); - if (!dex::Verify(dex_file.get(), - dex_file->Begin(), - dex_file->Size(), - location.c_str(), - verify_checksum, - error_msg)) { + if (!dex::Verify(dex_file.get(), location.c_str(), verify_checksum, error_msg)) { if (error_code != nullptr) { *error_code = DexFileLoaderErrorCode::kVerifyError; } |