diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-07-30 23:18:18 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-08-02 10:11:52 +0300 |
commit | df1cd46fb84922735e1c12f54b7202b0268dcddd (patch) | |
tree | 1b5d9af441de42562408e954be4a8735b72aea6b /disk | |
parent | 74ba69db35954e473a27711de89dae9572913478 (diff) | |
download | u-boot-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 'disk')
0 files changed, 0 insertions, 0 deletions