[coreboot] New Defects reported by Coverity Scan for coreboot

scan-admin at coverity.com scan-admin at coverity.com
Tue Aug 29 14:32:17 CEST 2017


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 1380036:  Control flow issues  (NO_EFFECT)
/src/soc/intel/cannonlake/romstage/romstage.c: 80 in soc_memory_init_params()


________________________________________________________________________________________________________
*** CID 1380036:  Control flow issues  (NO_EFFECT)
/src/soc/intel/cannonlake/romstage/romstage.c: 80 in soc_memory_init_params()
74     	m_cfg->TsegSize = CONFIG_SMM_TSEG_SIZE;
75     	m_cfg->IedSize = CONFIG_IED_REGION_SIZE;
76     	m_cfg->SaGv = config->SaGv;
77     	m_cfg->UserBd = BOARD_TYPE_ULT_ULX;
78     	m_cfg->RMT = config->RMT;
79     
>>>     CID 1380036:  Control flow issues  (NO_EFFECT)
>>>     "i" is converted to an unsigned type because it's compared to an unsigned constant.
80     	for (i = 0; i < ARRAY_SIZE(config->PcieRpEnable); i++) {
81     		if (config->PcieRpEnable[i])
82     			mask |= (1 << i);
83     	}
84     	m_cfg->PcieRpEnableMask = mask;
85     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbLuoVetFLSjdonCi1EjfHRqWGQvojmmkYaBE-2BPJiTQvQ-3D-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5YHM7-2FfxgucdcbMfxWRrD5EAc4icxuNU7awjIdPr1zUeVsGGvTo-2BKBmpRpmoS0Ku1iP3C-2FVAJsHHXo8ksYe9t-2B5c69p-2FCD8aIRlhNaHR-2FIJCMhHAtTppHz5jwRWii54sF99Z1x4CJE9pxQSjHEHiZ2yzHkEfuMMHsaV4IDrMZkTqIAVhx48cFiJu7GARCrKllU-3D

To manage Coverity Scan email notifications for "coreboot at coreboot.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4e-2BpBzwOa5gzBZa9dWpDbzfofODnVj1enK2UkK0-2BgCCqfkfgGF5ECMwHI0-2FVznrU953Dvw3Ddjop950pccFQ-2Br0qaXkQSgAjbZsF6g7Yem3Y-3D_q4bX76XMySz3BXBlWr5fXXJ4cvAsgEXEqC7dBPM7O5YHM7-2FfxgucdcbMfxWRrD5EdeDLQD6wlPgIcgl1NBhagBgArzP3JpTvX43f4oGfI9dJXIvo94INhA0um557jHTqbAKrT6C6PKrbYTO24EBQ6TXTPCYFxJQMnFaQb3GMdwGQa9E5ZxrU7zXmxYB5nyNbvSKrXmItLnTVUaoVi7IK-2FVuj1kdZ3peKsr7B90eMbtM-3D




More information about the coreboot mailing list