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 1493415:  Null pointer dereferences  (REVERSE_INULL)
/src/soc/intel/alderlake/hsphy.c: 71 in heci_get_hsphy_payload()


________________________________________________________________________________________________________
*** CID 1493415:  Null pointer dereferences  (REVERSE_INULL)
/src/soc/intel/alderlake/hsphy.c: 71 in heci_get_hsphy_payload()
65              uint32_t reserved[2];
66              uint32_t status;
67              uint8_t hash_type;
68              uint8_t hash[MAX_HASH_SIZE];
69      } __packed reply;
70     
>>>     CID 1493415:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "buf_size" suggests that it may be null, but it has 
>>> already been dereferenced on all paths leading to the check.
71      if (!buf || !buf_size || !hash_buf || !hash_alg) {
72              printk(BIOS_ERR, "%s: Invalid parameters\n", __func__);
73              return -1;
74      }
75     
76      reply_size = sizeof(reply);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrS27qY0Cr0DkycwNUgGZJj8-3Dj7KF_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn2tO7dwCJQIedDwOk6oCmKYOHuIoz3rh6dMh61dphTFe2seVhKT3v-2FSP0UFGav-2FhPBC6Xu8nFqsctWRmp1tp6BW-2Bsm5B8kAAxkIMuMZpReF68-2FrIAnLaI77nFSWF6-2BQDr9BUKP8thGdSXgl4tfyagG0inyybkEUlu1G21v3klGHSg-3D-3D

_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to