bootstd: android: avoid possible null pointer dereference
authorGary Bisson <bisson.gary@gmail.com>
Wed, 2 Apr 2025 14:42:19 +0000 (16:42 +0200)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Thu, 10 Apr 2025 08:03:21 +0000 (10:03 +0200)
commitdf50c821e75957113b93e45b363cb22c965e7a9b
tree857e756bc4f0b85575db3247e2e2d2009e1007b8
parentdc22cf37af6d604513f8c6f02d4cb551d5a59435
bootstd: android: avoid possible null pointer dereference

- avb_slot_verify_data_free() doesn't check its data parameter
- out_data can be null if avb_slot_verify() fails to allocate memory

Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20250402144219.1875067-1-bisson.gary@gmail.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
boot/bootmeth_android.c