Hi,
Please find the latest report on new defect(s) introduced to coreboot found with Coverity Scan.
1 new defect(s) introduced to coreboot found with Coverity Scan. 1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s)
** CID 1399716: Null pointer dereferences (NULL_RETURNS) /src/security/vboot/common.c: 167 in vb2_migrate_cbmem()
________________________________________________________________________________________________________ *** CID 1399716: Null pointer dereferences (NULL_RETURNS) /src/security/vboot/common.c: 167 in vb2_migrate_cbmem() 161 size_t cbmem_size = wd_preram->buffer_offset + wd_preram->buffer_size; 162 struct vb2_working_data *wd_cbmem = 163 cbmem_add(CBMEM_ID_VBOOT_WORKBUF, cbmem_size); 164 printk(BIOS_DEBUG, 165 "VBOOT: copying vb2_working_data (%zu bytes) to CBMEM...\n", 166 cbmem_size);
CID 1399716: Null pointer dereferences (NULL_RETURNS) Dereferencing a pointer that might be null "wd_cbmem" when calling "memcpy". [Note: The source code implementation of the function has been overridden by a builtin model.]
167 memcpy(wd_cbmem, wd_preram, cbmem_size); 168 assert(wd_cbmem != NULL); 169 } 170 ROMSTAGE_CBMEM_INIT_HOOK(vb2_migrate_cbmem) 171 #elif CONFIG(VBOOT_STARTS_IN_ROMSTAGE) 172 static void vb2_setup_cbmem(int unused)
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05...