Oopenvela-robotlib: utils: implement internal safe_strcpy function
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
lib: utils: implement internal safe_strcpy function The strlcpy() function has only recently become available in glibc. While this function prevents destination buffer overflow, it seems that it cannot guarantee read access only within the source buffer. this is for instance the case if the source string is not terminated by a'\0' character. Implement a safe_strcpy to ensure that no access is done out of the source and destination buffer ranges. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> | 3 个月前 |