Searched hist:df1cd46fb84922735e1c12f54b7202b0268dcddd (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/board/xilinx/zynqmp/ |
H A D | zynqmp.c | diff df1cd46fb84922735e1c12f54b7202b0268dcddd Sun Jul 30 15:18:18 CDT 2017 Heinrich Schuchardt <xypron.glpk@gmx.de> 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>
|