Skip to content
Commit 9fdbf1e0 authored by Mikael's avatar Mikael
Browse files

Ensure rpmsg channel name is null-terminated



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's avatarMikael Olsson <mikael.olsson@arm.com>
parent c081e595
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment