commit | 2ee20647847369be30cafa58b3ff78cf0b0e8dd6 | [log] [tgz] |
---|---|---|
author | Santiago Aboy Solanes <solanes@google.com> | Mon Jun 12 16:22:10 2023 +0100 |
committer | Santiago Aboy Solanes <solanes@google.com> | Wed Jun 14 10:57:47 2023 +0000 |
tree | 32e19893cfb6b3cf64c4abc2a6d347604b7b2928 | |
parent | 02ca77109a7ca43b821dcdcc50b73a6d9b7d9df5 [diff] |
Check that the header's section's size are consistent Check that the whole section (i.e. offset + size) lies within the file. Otherwise, we risk reading past the end of the file e.g. in https://cs.android.com/android/platform/superproject/+/master:art/libdexfile/dex/dex_file_verifier.cc;l=1427;drc=9f5fd34fe52e7bdc7fe2d919c34d366bf5393654. Bug: 286840166 Fixes: 286840166 Test: SANITIZE_HOST='address' m \ test-art-host-gtest-art_libdexfile_tests64 Change-Id: I84351f97e76ffee4d764fce47c1966e6e1f73897