Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: remoteproc: replace strncpy with internal strlcpy
The strncpy function does not ensure that the destination string is null-terminated. To address this issue, replace strncpy with the internal strlcpy function, which guarantees null-termination of the destination string. Note: (void)strlcpy(...) indicates that the return value is intentionally ignored. Signed-off-by: Arnaud Pouliquen <[email protected]> (cherry picked from commit b1606070c9109ac581e1aa8dcff2871d0207e839) Upstream PR: OpenAMP/open-amp#620 Signed-off-by: Tomi Fontanilles <[email protected]> Signed-off-by: Torsten Rasmussen <[email protected]>
- Loading branch information