summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2021-07-28 21:46:08 -0700
committerRoopesh Nataraja <roopeshr@codeaurora.org>2021-08-03 11:04:14 -0700
commite2eae4f425eec20595339494a94681df1d7ae751 (patch)
tree54dfa3a2c37e8ec9043fade0eb2940cbb7afa291 /trusty/coverage/coverage_test.cpp
parentf2511efa290ce589881a1a34ef53b02bfc63c1c7 (diff)
libsnapshot: Use std::unordered_set in DmSnapCowSizeCalculator.
There is a check here if vector resize fails. In practice, this would throw bad_alloc or length_error and cause a runtime abort, so the check is dead code. To protect against bad chunk_ids we can switch to unordered_set instead. The original memory concerns for std::set are less applicable since unordered_set is bucketed. Bug: 194431534 CRs-Fixed: 2979666 Test: apply OTA; run vts_libsnapshot_tests Change-Id: I09c108b700d2f83acf80a9eaa5099b46aedcab89 (cherry picked from commit 8c1e93196b123f47b7e20277587a9a568bb83bc8)
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions