summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorAlessio Balsini <balsini@google.com>2020-04-30 20:48:48 +0100
committerAlessio Balsini <balsini@google.com>2020-04-30 21:02:26 +0100
commit75672f8be5cc127e913bef6ddfe4f949a36abd3b (patch)
tree6629ed999833f206d06aa70d2d6be4fdcab3e663 /trusty/coverage/coverage_test.cpp
parent1a342a12f35c7d118e6367b3b68e9e6a47b4058a (diff)
snapshot_test: Fix overflow in statvfs arithmetics
Operations on (unsigned long) f_bsize and f_bfree are correctly handled on 64 bit architectures, but when switching to 32 bit, the multiplication between the two could result in an overflow, causing the test to crash. Fix by using a uint64_t operand, hinting the compiler to handle the whole multiplication with 64 bit operands. Bug: 154355449 Bug: 148889015 Test: vts_libsnapshot_test (32 bit) Signed-off-by: Alessio Balsini <balsini@google.com> Change-Id: Ief5c03ff7954c4a3e8597ef6e7df467f59428877
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions