Hi,
Please find the latest report on new defect(s) introduced to coreboot found with Coverity Scan.
2 new defect(s) introduced to coreboot found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s)
** CID 1518442: Resource leaks (RESOURCE_LEAK) /3rdparty/vboot/futility/file_type_bios.c: 215 in ft_show_bios()
________________________________________________________________________________________________________ *** CID 1518442: Resource leaks (RESOURCE_LEAK) /3rdparty/vboot/futility/file_type_bios.c: 215 in ft_show_bios() 209 if (fmap_find_by_name(buf, len, fmap, fmap_name[c], &ah)) { 210 /* But the file might be truncated */ 211 fmap_limit_area(ah, len); 212 if (asprintf((char **)&ft_print_header, "bios::%s", 213 fmap_name[c]) <= 0) { 214 ERROR("Failed to allocate buffer for FT_PRINT");
CID 1518442: Resource leaks (RESOURCE_LEAK) Variable "buf" going out of scope leaks the storage it points to.
215 return 1; 216 } 217 218 /* Update the state we're passing around */ 219 state.c = c; 220 state.area[c].offset = ah->area_offset;
** CID 1518441: Resource leaks (RESOURCE_LEAK) /3rdparty/vboot/futility/file_type_bios.c: 215 in ft_show_bios()
________________________________________________________________________________________________________ *** CID 1518441: Resource leaks (RESOURCE_LEAK) /3rdparty/vboot/futility/file_type_bios.c: 215 in ft_show_bios() 209 if (fmap_find_by_name(buf, len, fmap, fmap_name[c], &ah)) { 210 /* But the file might be truncated */ 211 fmap_limit_area(ah, len); 212 if (asprintf((char **)&ft_print_header, "bios::%s", 213 fmap_name[c]) <= 0) { 214 ERROR("Failed to allocate buffer for FT_PRINT");
CID 1518441: Resource leaks (RESOURCE_LEAK) Handle variable "fd" going out of scope leaks the handle.
215 return 1; 216 } 217 218 /* Update the state we're passing around */ 219 state.c = c; 220 state.area[c].offset = ah->area_offset;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...