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. 43 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 1368307: Integer handling issues (DIVIDE_BY_ZERO) /src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c: 1107 in procConfig()
________________________________________________________________________________________________________ *** CID 1368307: Integer handling issues (DIVIDE_BY_ZERO) /src/northbridge/amd/amdmct/mct_ddr3/mhwlc_d.c: 1107 in procConfig() 1101 Seed_Total = 0x15; 1102 } 1103 if (pDCTData->Status[DCT_STATUS_REGISTERED]) 1104 Seed_Total += ((AddrCmdPrelaunch)?0x10:0x0); 1105 1106 /* Adjust seed for the minimum platform supported frequency */
CID 1368307: Integer handling issues (DIVIDE_BY_ZERO) In expression "(int64_t)Seed_Total * fam15h_freq_tab[MemClkFreq] * 100LL / (mctGet_NVbits(4) * 100)", division by expression "mctGet_NVbits(4) * 100" which may be zero has undefined behavior.
1107 Seed_Total = (int32_t) (((((int64_t) Seed_Total) * 1108 fam15h_freq_tab[MemClkFreq] * 100) / (mctGet_NVbits(NV_MIN_MEMCLK) * 100))); 1109 1110 Seed_Gross = (Seed_Total >> 5) & 0x1f; 1111 Seed_Fine = Seed_Total & 0x1f; 1112
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05...
To manage Coverity Scan email notifications for "coreboot@coreboot.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05...