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.
3 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 1447050:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/src/northbridge/intel/haswell/northbridge.c: 301 in mc_add_dram_resources()


________________________________________________________________________________________________________
*** CID 1447050:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/src/northbridge/intel/haswell/northbridge.c: 301 in mc_add_dram_resources()
295             size_k = (0xa0000 >> 10) - base_k;
296             ram_resource(dev, index++, base_k, size_k);
297     
298             /* 0xc0000 -> TSEG - DPR */
299             base_k = 0xc0000 >> 10;
300             size_k = (unsigned long)(mc_values[TSEG_REG] >> 10) - base_k;
>>>     CID 1447050:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
>>>     "dpr.size >> 10" is 0 regardless of the values of its operands. This 
>>> occurs as the operand of assignment.
301             size_k -= dpr.size >> 10;
302             ram_resource(dev, index++, base_k, size_k);
303     
304             /* TSEG - DPR -> BGSM */
305             resource = new_resource(dev, index++);
306             resource->base = mc_values[TSEG_REG] - dpr.size;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrS27qY0Cr0DkycwNUgGZJj8-3DEzvE_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn3tvkBYCgyBeAiKFEYJ3-2BRG29tZgMvhfK-2For1wLbZpJ4kLtfU9-2FSBpTlGXKTcMZ9bJ-2Fdb46hH8gHDivW-2Bj3xNFMVR6gl79UE36NJMOcTgJbYASS7sjZgzSIwojqTBJyRWMEdFcqceYl-2B42VHrdJEB2b0R-2FijRdZuJMRUSGYQT3snlfuyfUKPqrdq7FQDVo3QVs-3D

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

Reply via email to