)]}' { "commit": "a42b426b8548e3304e995f1a49d2470d71072949", "tree": "353d4ffad00dc76075d1022cb433057abd9fa6ee", "parents": [ "b7bd9863dc2f0a055e0c4bc065e071c4b1863647" ], "author": { "name": "Manish V Badarkhe", "email": "manish.badarkhe@arm.com", "time": "Wed May 04 17:21:22 2022 +0100" }, "committer": { "name": "Manish V Badarkhe", "email": "manish.badarkhe@arm.com", "time": "Thu May 05 11:33:40 2022 +0100" }, "message": "fix(fvp): fix NULL pointer dereference issue\n\nFixed below NULL pointer dereference issue reported by coverity scan\nby asserting the hw_config_info is not NULL.\n\n*** CID 378361: Null pointer dereferences (NULL_RETURNS)\n/plat/arm/board/fvp/fvp_bl2_setup.c: 84 in plat_get_next_bl_params()\n78\n79 /* To retrieve actual size of the HW_CONFIG */\n80 param_node \u003d get_bl_mem_params_node(HW_CONFIG_ID);\n81 assert(param_node !\u003d NULL);\n82\n83 /* Copy HW config from Secure address to NS address */\n\u003e\u003e\u003e CID 378361: Null pointer dereferences (NULL_RETURNS)\n\u003e\u003e\u003e Dereferencing \"hw_config_info\", which is known to be \"NULL\".\n84 memcpy((void *)hw_config_info-\u003ens_config_addr,\n85 (void *)hw_config_info-\u003econfig_addr,\n86 (size_t)param_node-\u003eimage_info.image_size);\n\nSigned-off-by: Manish V Badarkhe \u003cmanish.badarkhe@arm.com\u003e\nChange-Id: Iaf584044cfc3b2583862bcc1be825966eaffd38e\n", "tree_diff": [ { "type": "modify", "old_id": "4eee522b2cdd56b3529c77707daf22ef4a27e9e0", "old_mode": 33188, "old_path": "plat/arm/board/fvp/fvp_bl2_setup.c", "new_id": "74e5d72f7321ae2d8c1abd1c224780f0267b6baf", "new_mode": 33188, "new_path": "plat/arm/board/fvp/fvp_bl2_setup.c" } ] }