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. 1 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 1469611: (OVERRUN) /src/soc/amd/cezanne/psp_verstage/uart.c: 16 in get_uart_base() /src/soc/amd/cezanne/psp_verstage/uart.c: 25 in get_uart_base() /src/soc/amd/cezanne/psp_verstage/uart.c: 17 in get_uart_base()
________________________________________________________________________________________________________ *** CID 1469611: (OVERRUN) /src/soc/amd/cezanne/psp_verstage/uart.c: 16 in get_uart_base() 10 { 11 uint32_t err; 12 13 if (idx > ARRAY_SIZE(uart_bars)) 14 return 0; 15
CID 1469611: (OVERRUN) Overrunning array "uart_bars" of 1 4-byte elements at element index 1 (byte offset 7) using index "idx" (which evaluates to 1).
16 if (uart_bars[idx]) 17 return (uintptr_t)uart_bars[idx]; 18 19 err = svc_map_fch_dev(FCH_IO_DEVICE_UART, idx, 0, &uart_bars[idx]); 20 if (err) { 21 svc_debug_print("Failed to map UART\n"); /src/soc/amd/cezanne/psp_verstage/uart.c: 25 in get_uart_base() 19 err = svc_map_fch_dev(FCH_IO_DEVICE_UART, idx, 0, &uart_bars[idx]); 20 if (err) { 21 svc_debug_print("Failed to map UART\n"); 22 return 0; 23 } 24
CID 1469611: (OVERRUN) Overrunning array "uart_bars" of 1 4-byte elements at element index 1 (byte offset 7) using index "idx" (which evaluates to 1).
25 return (uintptr_t)uart_bars[idx]; /src/soc/amd/cezanne/psp_verstage/uart.c: 17 in get_uart_base() 11 uint32_t err; 12 13 if (idx > ARRAY_SIZE(uart_bars)) 14 return 0; 15 16 if (uart_bars[idx])
CID 1469611: (OVERRUN) Overrunning array "uart_bars" of 1 4-byte elements at element index 1 (byte offset 7) using index "idx" (which evaluates to 1).
17 return (uintptr_t)uart_bars[idx]; 18 19 err = svc_map_fch_dev(FCH_IO_DEVICE_UART, idx, 0, &uart_bars[idx]); 20 if (err) { 21 svc_debug_print("Failed to map UART\n"); 22 return 0; 23 } 24 25 return (uintptr_t)uart_bars[idx];
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...