mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![]() Exit with AVB_SLOT_VERIFY_RESULT_ERROR_INVALID_ARGUMENT when hashtree_error_mode value passed to avb_append_options() is unknown (not from AvbHashtreeErrorMode enum). Otherwise, default value is not handled in the switch(hashtree_error_mode), which causes below compile warning: lib/libavb/avb_cmdline.c: In function ‘avb_append_options’: lib/libavb/avb_cmdline.c:354:13: warning: ‘dm_verity_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized] new_ret = avb_replace( ~~~~~~~~^~~~~~~~~~~~~~ slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/libavb/avb_cmdline.c:363:8: warning: ‘verity_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (!cmdline_append_option( ^~~~~~~~~~~~~~~~~~~~~~ slot_data, "androidboot.veritymode", verity_mode)) { Signed-off-by: Ievgen Maliarenko <ievgen.maliarenko@globallogic.com> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> |
||
---|---|---|
.. | ||
avb_chain_partition_descriptor.c | ||
avb_chain_partition_descriptor.h | ||
avb_cmdline.c | ||
avb_cmdline.h | ||
avb_crypto.c | ||
avb_crypto.h | ||
avb_descriptor.c | ||
avb_descriptor.h | ||
avb_footer.c | ||
avb_footer.h | ||
avb_hash_descriptor.c | ||
avb_hash_descriptor.h | ||
avb_hashtree_descriptor.c | ||
avb_hashtree_descriptor.h | ||
avb_kernel_cmdline_descriptor.c | ||
avb_kernel_cmdline_descriptor.h | ||
avb_ops.h | ||
avb_property_descriptor.c | ||
avb_property_descriptor.h | ||
avb_rsa.c | ||
avb_rsa.h | ||
avb_sha256.c | ||
avb_sha512.c | ||
avb_sha.h | ||
avb_slot_verify.c | ||
avb_slot_verify.h | ||
avb_sysdeps_posix.c | ||
avb_sysdeps.h | ||
avb_util.c | ||
avb_util.h | ||
avb_vbmeta_image.c | ||
avb_vbmeta_image.h | ||
avb_version.c | ||
avb_version.h | ||
libavb.h | ||
Makefile |