commit | e6c1a8427643a066d4f272a9ef9f9f1bd8b7449e | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon May 04 16:59:27 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue May 05 18:01:15 2020 -0700 |
tree | 5fd2df02e3fa2393af572bfc6b5c3bed7353b681 | |
parent | 2e66043394b6fc2ff014bc3db351f1325907f91b [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