platform_system_core/fs_mgr/libsnapshot
Alessio Balsini fb5de5bc8f Propagate failure of MetadataBuilder creation in CreateUpdateSnapshots
In a device with malformed metadata, the MetadataBuilder returns a
nullptr that may cause segmentation faults when using the builder.
Fix by handling the nullptr exception in CreateUpdateSnapshot and
propagating the error to its caller.

Bug: n/a
Test: libsnapshot_test
Change-Id: Ie9148a552cf4bb223ab8d54b1d30d2b13d92bb22
Signed-off-by: Alessio Balsini <balsini@google.com>
2020-01-30 22:42:54 +00:00
..
android/snapshot Refactor update status management as protobuf 2020-01-12 18:22:44 +00:00
include/libsnapshot Creating logical and snapshot partitions uses timeout in tests 2020-01-29 18:24:50 +00:00
include_test/libsnapshot SnapshotManager::Return -> Return 2020-01-17 14:43:27 -08:00
Android.bp Dependency cleanup for snapshot .bp 2020-01-29 16:31:06 +00:00
device_info.cpp libsnapshot: Add a helper for handling data wipes in recovery. 2019-11-10 23:07:11 -08:00
device_info.h libsnapshot: Add a helper for handling data wipes in recovery. 2019-11-10 23:07:11 -08:00
dm_snapshot_internals.h pragma once for header file 2019-10-28 16:38:35 +00:00
OWNERS Add balsini@ as libsnapshot owner 2020-01-09 10:11:45 +00:00
partition_cow_creator.cpp SOURCE_COPY operation: implement src == dst 2019-12-02 14:58:17 -08:00
partition_cow_creator.h PartitionCowCreator accounts for extra extents 2019-12-02 12:49:38 -08:00
partition_cow_creator_test.cpp libsnapshot: add library for test helpers 2019-12-06 17:42:40 -08:00
return.cpp SnapshotManager::WaitForMerge gives more info 2020-01-21 13:34:55 -08:00
snapshot.cpp Propagate failure of MetadataBuilder creation in CreateUpdateSnapshots 2020-01-30 22:42:54 +00:00
snapshot_metadata_updater.cpp libsnapshot: Add snapshot metadata updater. 2019-09-17 12:55:23 -07:00
snapshot_metadata_updater.h libsnapshot: Add snapshot metadata updater. 2019-09-17 12:55:23 -07:00
snapshot_metadata_updater_test.cpp Skip snapshot tests for non-Virtual A/B devices 2020-01-30 16:23:27 +00:00
snapshot_test.cpp Propagate failure of MetadataBuilder creation in CreateUpdateSnapshots 2020-01-30 22:42:54 +00:00
snapshotctl.cpp [REFACTOR] libsnapshot: Add InitiateMergeAndWait 2019-10-31 17:06:28 -07:00
snapshotctl.rc libsnapshot: start in background 2019-12-03 13:27:05 -08:00
test_helpers.cpp ImageManager returns FiemapStatus. 2020-01-07 13:01:58 -08:00
utility.cpp SnapshotManager::Return -> Return 2020-01-17 14:43:27 -08:00
utility.h SnapshotManager::Return -> Return 2020-01-17 14:43:27 -08:00