summaryrefslogtreecommitdiff
path: root/compiler/compiled_method.cc
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2022-09-28 11:22:09 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-09-28 16:43:58 +0000
commita97cdddf914132230b830ac322bb3ff2f190a092 (patch)
tree7ee4858451e7d5a6ea38a53c6e6d872758f93f4d /compiler/compiled_method.cc
parentaebf927633059672e6fc0c0b332051d76fc1ef96 (diff)
Check if return value from `LZ4_decompress_safe()` is negative.
`LZ4_decompress_safe()` returns an `int`, which was previously cast to `size_t` without checking for possible negative values. This hides possible errors (they hit the following assertion that decompressed size equals image size). Instead, fail to decompress the image if return value is negative. Bug: 242914915 Test: art/test.py --host Change-Id: I0e330bbbd55ccbef124230b6b50915ea8d009b03
Diffstat (limited to 'compiler/compiled_method.cc')
0 files changed, 0 insertions, 0 deletions