New Defects reported by Coverity Scan for coreboot

scan-admin--- via coreboot <[email protected]>
Newsgroups gmane.linux.bios
Message-ID <[email protected]>
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.
4 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 1523711:  Memory - illegal accesses  (BUFFER_SIZE)
/src/mainboard/prodrive/hermes/mainboard.c: 114 in update_board_layout()


________________________________________________________________________________________________________
*** CID 1523711:  Memory - illegal accesses  (BUFFER_SIZE)
/src/mainboard/prodrive/hermes/mainboard.c: 114 in update_board_layout()
108     	/* Update CPU fields */
109     	for (struct device *cpu = all_devices; cpu; cpu = cpu->next) {
110     		if (!is_enabled_cpu(cpu))
111     			continue;
112     		layout.cpu_count++;
113     		if (!layout.cpu_name[0])
>>>     CID 1523711:  Memory - illegal accesses  (BUFFER_SIZE)
>>>     Calling "strncpy" with a maximum size argument of 50 bytes on destination array "layout.cpu_name" of size 50 bytes might leave the destination string unterminated.
114     			strncpy(layout.cpu_name, cpu->name, sizeof(layout.cpu_name));
115     	}
116     
117     	if (cpuid_get_max_func() >= 0x16)
118     		layout.cpu_max_non_turbo_frequency = cpuid_eax(0x16);
119     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yq2SfQfrHt3Prsn4qSLrYIrajINpiFX8l0vrlNSf8iCrTjqFj-2FaFAQ8isdZKd1XG3Q-3DDRTO_L-2FDzr14mnrsJO5b1wX1hp9b1MAQygl7x-2B74RAaH2cn2xxwktEMrqE5Z5g8We2wq1-2BGClyYc4EjQFoxJDKhVaSAJda3h-2FD0s6fdIuDdsyqscVYPCL4JbpUCRtrNip-2F8OGYNYH1L-2B2WS00P7ONHWDYOJzz0Tbtfh7AF70pbSy-2F-2BQzcG8qnB2B9rfhqdfJrqhQPzaAER8sjw0mu31BNDAMKAw-3D-3D

_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.