diff options
author | Yifan Hong <elsk@google.com> | 2020-05-04 16:59:27 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2020-05-06 15:12:22 -0700 |
commit | 82035d6b82ef71d6970abd4992ea6ecf8282debb (patch) | |
tree | 4725d8508c593c1c2b45716ce1238e015954d4b2 /libsparse/sparse.cpp | |
parent | 9842adf7681caf510fca5928e139ca2b0b2601ab (diff) |
libsnapshot: fix incorrect assumption of cow images
libsnapshot used to assume CoW images are always mapped
with device mapper, and call GetDeviceString directly.
However, in tests, it is possible that it is mapped as loop
devices. Fix the incorrect assumption and calls
IImageManager::GetMappedImageDevice instead.
Test: libsnapshot_fuzzer with corpus
Bug: 154633114
Change-Id: I1ec39744480e514ae7a7902643ed863e0ca0a340
(cherry picked from commit e6c1a8427643a066d4f272a9ef9f9f1bd8b7449e)
Merged-In: I1ec39744480e514ae7a7902643ed863e0ca0a340
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions