summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-06-12 16:22:10 +0100
committer Santiago Aboy Solanes <solanes@google.com> 2023-06-14 10:57:47 +0000
commit2ee20647847369be30cafa58b3ff78cf0b0e8dd6 (patch)
tree32e19893cfb6b3cf64c4abc2a6d347604b7b2928 /compiler/utils/assembler.cc
parent02ca77109a7ca43b821dcdcc50b73a6d9b7d9df5 (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
Diffstat (limited to 'compiler/utils/assembler.cc')
0 files changed, 0 insertions, 0 deletions