commit | 7e802f4a5b37d3007a1e85fd20d10e08e935ec45 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sun Jul 30 22:18:18 2017 +0200 |
committer | Michal Simek <michal.simek@xilinx.com> | Wed Aug 02 09:11:52 2017 +0200 |
tree | 1b5d9af441de42562408e954be4a8735b72aea6b | |
parent | 8d52653d85d77316cb5600e880555d2b0a5d45a7 [diff] |
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>