diff options
author | Mikael Olsson <mikael.olsson@arm.com> | 2023-11-03 15:02:13 +0100 |
---|---|---|
committer | Mikael Olsson <mikael.olsson@arm.com> | 2023-11-06 16:24:31 +0100 |
commit | 9fdbf1e084ce0a2994c2637f506dbde84e9f228c (patch) | |
tree | 9cb019c1d274b55e7326073bfe87cae0f459f535 /mailbox/arm_mhu_v2.c | |
parent | c081e5954cd92165b139488e76bdfef1402acee6 (diff) | |
download | ethos-u-linux-driver-stack-23.11-rc1.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 'mailbox/arm_mhu_v2.c')
0 files changed, 0 insertions, 0 deletions