platform_bootable_recovery/updater
Alessandro Astone 1dfb086ca8 updater: Do not null terminate mount_flags_list array
mount_flags_list is a c-style NULL terminated array, but when
iterating over it via
    for (const auto& [name, value] : mount_flags_list)
the last { 0, 0 } is considered a valid entry.
Then `name` is NULL but checked with (flag == name),
which causes SIGSEGV.

Also move the definition to within setMountFlag()
and make it an std::pair array

Change-Id: Ia6670113620c6e8f95151fda764c3ab40bc2d67e
2021-02-17 00:05:54 +01:00
..
include Add add_slot_suffix function. 2020-05-19 15:20:14 -07:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to bootable/recovery 2021-02-14 10:37:20 -08:00
Android.mk [LSC] Add LOCAL_LICENSE_KINDS to bootable/recovery 2021-02-14 10:37:20 -08:00
blockimg.cpp Switch to zip64 in recovery 2020-09-16 14:21:37 -04:00
build_info.cpp Simulator: add the argument to keep the updated images 2019-07-30 17:11:35 -07:00
commands.cpp Fix some wording to comply with respectful-code 2020-07-23 13:07:24 -07:00
dynamic_partitions.cpp Implement updater runtime for dynamic partitions 2019-06-24 12:46:28 -07:00
install.cpp Check for overflow before allocating memory fore decompression. 2020-09-18 17:41:51 -04:00
mounts.cpp Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
mounts.h Move mounts.cpp from libotautil into libupdater. 2019-10-01 12:13:04 -07:00
simulator_runtime.cpp Add add_slot_suffix function. 2020-05-19 15:20:14 -07:00
target_files.cpp Check for overflow before allocating memory fore decompression. 2020-09-18 17:41:51 -04:00
update_simulator_main.cpp Simulator: add the argument to keep the updated images 2019-07-30 17:11:35 -07:00
updater.cpp Check for overflow before allocating memory fore decompression. 2020-09-18 17:41:51 -04:00
updater_main.cpp Run BORINGSSL_self_test() in updater_main 2019-10-05 17:06:48 -07:00
updater_runtime.cpp updater: Do not null terminate mount_flags_list array 2021-02-17 00:05:54 +01:00
updater_runtime_dynamic_partitions.cpp Add slot suffix to DAP ops 2020-05-19 15:20:14 -07:00