arm-trusted-firmware/plat/st/common
Yann Gautier 2deff904a9 fix(st): fix NULL pointer dereference issues
The get_bl_mem_params_node() function could return NULL. Add asserts to
check the return value is not NULL.
This corrects coverity issues:
	pager_mem_params = get_bl_mem_params_node(BL32_EXTRA1_IMAGE_ID);
>>>     CID 378360:    (NULL_RETURNS)
>>>     Dereferencing "pager_mem_params", which is known to be "NULL".

	paged_mem_params = get_bl_mem_params_node(BL32_EXTRA2_IMAGE_ID);
>>>     CID 378360:    (NULL_RETURNS)
>>>     Dereferencing "paged_mem_params", which is known to be "NULL".

	tos_fw_mem_params = get_bl_mem_params_node(TOS_FW_CONFIG_ID);
>>>     CID 378360:    (NULL_RETURNS)
>>>     Dereferencing "tos_fw_mem_params", which is known to be "NULL".


Do the same for other occurrences of get_bl_mem_params_node() return not
checked, in the functions plat_get_bl_image_load_info() and
bl2_plat_handle_pre_image_load().

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I79165b1628fcee3da330f2db4ee5e1dafcb1b21f
2022-05-06 11:00:15 +02:00
..
include feat(stm32mp1): retry 3 times FWU trial boot 2022-03-30 15:44:40 +02:00
bl2_io_storage.c fix(st): fix NULL pointer dereference issues 2022-05-06 11:00:15 +02:00
bl2_stm32_io_storage.c fix(st): don't try to read boot partition on SD cards 2022-03-11 10:39:57 +01:00
stm32cubeprogrammer_uart.c feat(plat/st): add STM32CubeProgrammer support on UART 2021-12-03 09:26:11 +01:00
stm32cubeprogrammer_usb.c fix(plat/st): remove double space 2021-11-03 08:50:37 +01:00
stm32mp_auth.c feat(st): disable authentication based on part_number 2022-02-01 13:52:40 +01:00
stm32mp_common.c refactor(st): configure UART baudrate 2022-03-04 14:55:18 +01:00
stm32mp_dt.c refactor(stm32mp1): drop the "st,stm32-nvmem-layout" node 2022-03-28 18:29:59 +02:00
stm32mp_fconf_io.c feat(stm32mp1): add support for reading the metadata partition 2022-01-27 18:09:02 +05:30
usb_dfu.c feat(plat/st): add a USB DFU stack 2021-10-29 16:43:36 +02:00