u-boot/board/xilinx/zynqmp
Heinrich Schuchardt df1cd46fb8 arm64: zynqmp: avoid out of buffer access
strncat(a, b, c) appends a maximum of c characters plus the 0 byte
to a.

In board_init we first write 4 characters plus 0 byte to version.
So only ZYNQMP_VERSION_SIZE - 5 additional characters fit into
version.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2017-08-02 09:11:52 +02:00
..
MAINTAINERS ARM64: zynqmp: Simplify MAINTAINERS file to support more boards 2016-04-04 20:28:38 +02:00
Makefile arm64: zynqmp: Add Kconfig option for adding psu_init to binary 2017-08-02 09:11:52 +02:00
sleep.h arm64: zynqmp: Add empty sleep.h file for psu_init* compilation 2017-06-20 16:40:58 +02:00
xil_io.h arm64: zynqmp: Fix psu_init* external functions 2017-06-19 16:53:10 +02:00
zynqmp.c arm64: zynqmp: avoid out of buffer access 2017-08-02 09:11:52 +02:00