[coreboot] New Defects reported by Coverity Scan for coreboot
scan-admin at coverity.com
scan-admin at coverity.com
Fri Aug 17 16:19:07 CEST 2018
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.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1395066: Null pointer dereferences (NULL_RETURNS)
________________________________________________________________________________________________________
*** CID 1395066: Null pointer dereferences (NULL_RETURNS)
/util/ifdtool/ifdtool.c: 241 in get_ifd_version_from_fcba()
235 int read_freq;
236 const fcba_t *fcba = find_fcba(image, size);
237 const fdbar_t *fdb = find_fd(image, size);
238 if (!fcba) /* a valid fcba indicates a valid fdb */
239 exit(EXIT_FAILURE);
240
>>> CID 1395066: Null pointer dereferences (NULL_RETURNS)
>>> Dereferencing a pointer that might be null "fdb" when calling "guess_ich_chipset".
241 chipset = guess_ich_chipset(fdb);
242 /* TODO: port ifd_version and max_regions
243 * against guess_ich_chipset()
244 */
245 read_freq = (fcba->flcomp >> 17) & 7;
246
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5Zf8xr1JW7cZWmg27y8uySnaYJ9pF0Gq-2BJyWtT5pix4Y9XPpz-2Fas2sBVz1wZushcWM-2FkaVwQ2f1AQ60OBK-2FDLsZGSTR5xAcwYsgHNti8LJx12abnidgIl0HwZod096w2xVOn8grMomVQ4qlM9OweMfOURDDogTtaSK8pfiqghPRfZPeW26lf60v-2F968u6A7GC0-3D
More information about the coreboot
mailing list