Searched hist:a42b426b8548e3304e995f1a49d2470d71072949 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/plat/arm/board/fvp/ |
| H A D | fvp_bl2_setup.c | a42b426b8548e3304e995f1a49d2470d71072949 Wed May 04 16:21:22 UTC 2022 Manish V Badarkhe <manish.badarkhe@arm.com> fix(fvp): fix NULL pointer dereference issue
Fixed below NULL pointer dereference issue reported by coverity scan by asserting the hw_config_info is not NULL.
*** CID 378361: Null pointer dereferences (NULL_RETURNS) /plat/arm/board/fvp/fvp_bl2_setup.c: 84 in plat_get_next_bl_params() 78 79 /* To retrieve actual size of the HW_CONFIG */ 80 param_node = get_bl_mem_params_node(HW_CONFIG_ID); 81 assert(param_node != NULL); 82 83 /* Copy HW config from Secure address to NS address */ >>> CID 378361: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing "hw_config_info", which is known to be "NULL". 84 memcpy((void *)hw_config_info->ns_config_addr, 85 (void *)hw_config_info->config_addr, 86 (size_t)param_node->image_info.image_size);
Signed-off-by: Manish V Badarkhe <manish.badarkhe@arm.com> Change-Id: Iaf584044cfc3b2583862bcc1be825966eaffd38e
|