summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-07-30 20:18:18 (GMT)
committerMichal Simek <michal.simek@xilinx.com>2017-08-02 07:11:52 (GMT)
commitdf1cd46fb84922735e1c12f54b7202b0268dcddd (patch)
tree1b5d9af441de42562408e954be4a8735b72aea6b /common
parent74ba69db35954e473a27711de89dae9572913478 (diff)
downloadu-boot-fsl-qoriq-df1cd46fb84922735e1c12f54b7202b0268dcddd.tar.xz
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>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions