OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
721 stars 291 forks source link

Safer use of strncpy patch #578

Closed tarmasr closed 7 months ago

tarmasr commented 7 months ago

@arnopo : as requested

This patch adds 0-termination of the destination buffer after each call of strncpy() in the open-amp project. In one place optional {...} braces were added to an else branch because its if branch now needs braces.

tnmysh commented 7 months ago

LGTM after addressing Arnaud's concern.