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