aboutsummaryrefslogtreecommitdiff
path: root/remoteproc/ethosu_remoteproc.c
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-11-03 15:02:13 +0100
committerMikael Olsson <mikael.olsson@arm.com>2023-11-06 16:24:31 +0100
commit9fdbf1e084ce0a2994c2637f506dbde84e9f228c (patch)
tree9cb019c1d274b55e7326073bfe87cae0f459f535 /remoteproc/ethosu_remoteproc.c
parentc081e5954cd92165b139488e76bdfef1402acee6 (diff)
downloadethos-u-linux-driver-stack-9fdbf1e084ce0a2994c2637f506dbde84e9f228c.tar.gz
Ensure rpmsg channel name is null-terminated23.11-rc1
Currently when the rpmsg channel name is copied from the rpmsg device, the full size of the name array is given to strncpy. This means if there is no null-terminator in that size, the name will be left unterminated. To ensure that the name is always null-terminated, the size given to strncpy is now decreased by one and the name array is zero initialized. Change-Id: I73b4b597f51a63e5dac23945735f307cb1035e25 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'remoteproc/ethosu_remoteproc.c')
0 files changed, 0 insertions, 0 deletions