Skip to content
Commit df1cd46f authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Michal Simek
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 74ba69db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment