coreboot-kgpe-d16/src/soc
Richard Spiegel f35cc4d60f soc/amd/common/block/pi/amd_late_init.c: Fix illegal memory access
Found-by: Coverity (CID 1387031: Memory - illegal accesses
(BUFFER_SIZE_WARNING)). Calling strncpy with a maximum size argument of
19 bytes on destination array "dimm->module_part_number" of size 19 bytes
might leave the destination string unterminated. Fix the size parameter.

BUG=b:76202696
TEST=Build and boot kahlee, using special debug code to see the output
strings, which was later removed.

Change-Id: I18fa5e9c73401575441b6810f1db80d11666368c
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/25419
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-04-24 17:14:29 +00:00
..
amd soc/amd/common/block/pi/amd_late_init.c: Fix illegal memory access 2018-04-24 17:14:29 +00:00
broadcom soc{broadcom,imgtec,mediatek,qualcomm}: stop using spi_xfer_two_vectors 2018-04-23 09:13:16 +00:00
dmp DMP Vortex86ex board & chip: Remove - using LATE_CBMEM_INIT 2018-01-15 23:23:17 +00:00
imgtec soc{broadcom,imgtec,mediatek,qualcomm}: stop using spi_xfer_two_vectors 2018-04-23 09:13:16 +00:00
intel compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
lowrisc RISC-V boards: Stop using the config string 2017-11-07 12:31:00 +00:00
marvell src/soc: Fix various typos 2018-02-20 23:17:39 +00:00
mediatek soc{broadcom,imgtec,mediatek,qualcomm}: stop using spi_xfer_two_vectors 2018-04-23 09:13:16 +00:00
nvidia compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
qualcomm soc{broadcom,imgtec,mediatek,qualcomm}: stop using spi_xfer_two_vectors 2018-04-23 09:13:16 +00:00
rockchip spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
samsung driver/uart: Introduce a way for mainboard to override the baudrate 2018-02-21 16:09:06 +00:00
ucb riscv: Remove config string support 2017-12-02 05:25:00 +00:00