commit | 25650707dd3b125ceb2c50451ad48f8794d89266 | [log] [tgz] |
---|---|---|
author | Alessio Balsini <balsini@google.com> | Thu Jan 30 16:28:05 2020 +0000 |
committer | Alessio Balsini <balsini@google.com> | Thu Jan 30 22:42:54 2020 +0000 |
tree | ce9f934cdba0a7bd816b4e9783d7b08150a0030e | |
parent | 5bd3461a0918363d68d80600816ec9409feb94eb [diff] |
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>