New Defects reported by Coverity Scan for coreboot

scan-admin--- via coreboot <[email protected]>
Newsgroups gmane.linux.bios
Message-ID <[email protected]>
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-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrS27qY0Cr0DkycwNUgGZJj8-3DP22h_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn2qkCbkt0Vygxfn9HGMcZpLTCgnUKzih6faQWYFlEohXo0iegIQjbe4KN5veAQV-2BaAZwDuwhaGew0wwGNdLm8wKBvKtQGsCiqg9c19KdmWO1xFAMh7c-2FNDmpltfSFS-2BF-2BwZyTQvmKvp04GLayeb3NzsYuUyfzKy7LwZ9yNBpo6-2B5A-3D-3D

_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.