diff --git a/libs/libc/string/lib_stpcpy.c b/libs/libc/string/lib_stpcpy.c index c9eff7ad14b..8728d4c222f 100644 --- a/libs/libc/string/lib_stpcpy.c +++ b/libs/libc/string/lib_stpcpy.c @@ -69,6 +69,7 @@ #ifndef CONFIG_LIBC_ARCH_STPCPY #undef stpcpy /* See mm/README.txt */ +nosanitize_address FAR char *stpcpy(FAR char *dest, FAR const char *src) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strcat.c b/libs/libc/string/lib_strcat.c index 5d7dc8dcb09..175ff667762 100644 --- a/libs/libc/string/lib_strcat.c +++ b/libs/libc/string/lib_strcat.c @@ -57,6 +57,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT) #undef strcat /* See mm/README.txt */ +nosanitize_address FAR char *strcat(FAR char *dest, FAR const char *src) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strchr.c b/libs/libc/string/lib_strchr.c index 463b485001d..750a56f3b74 100644 --- a/libs/libc/string/lib_strchr.c +++ b/libs/libc/string/lib_strchr.c @@ -76,6 +76,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR) #undef strchr /* See mm/README.txt */ +nosanitize_address FAR char *strchr(FAR const char *s, int c) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strcmp.c b/libs/libc/string/lib_strcmp.c index 1a99f8109c1..8be21578598 100644 --- a/libs/libc/string/lib_strcmp.c +++ b/libs/libc/string/lib_strcmp.c @@ -58,6 +58,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP) #undef strcmp /* See mm/README.txt */ +nosanitize_address int strcmp(FAR const char *cs, FAR const char *ct) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strcpy.c b/libs/libc/string/lib_strcpy.c index 27cddca36f5..b8d34089ba6 100644 --- a/libs/libc/string/lib_strcpy.c +++ b/libs/libc/string/lib_strcpy.c @@ -70,6 +70,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY) #undef strcpy /* See mm/README.txt */ +nosanitize_address FAR char *strcpy(FAR char *dest, FAR const char *src) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strlen.c b/libs/libc/string/lib_strlen.c index d13968c26d2..b465a1dbfbb 100644 --- a/libs/libc/string/lib_strlen.c +++ b/libs/libc/string/lib_strlen.c @@ -57,6 +57,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN) #undef strlen /* See mm/README.txt */ +nosanitize_address size_t strlen(FAR const char *s) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strncmp.c b/libs/libc/string/lib_strncmp.c index 8000c17be38..92f79e957e1 100644 --- a/libs/libc/string/lib_strncmp.c +++ b/libs/libc/string/lib_strncmp.c @@ -61,6 +61,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRNCMP) && defined(LIBC_BUILD_STRNCMP) #undef strncmp /* See mm/README.txt */ +nosanitize_address int strncmp(FAR const char *cs, FAR const char *ct, size_t nb) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE diff --git a/libs/libc/string/lib_strncpy.c b/libs/libc/string/lib_strncpy.c index ccceb5d87ba..29a903e92ba 100644 --- a/libs/libc/string/lib_strncpy.c +++ b/libs/libc/string/lib_strncpy.c @@ -84,6 +84,7 @@ #if !defined(CONFIG_LIBC_ARCH_STRNCPY) && defined(LIBC_BUILD_STRNCPY) #undef strncpy /* See mm/README.txt */ +nosanitize_address FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n) { #ifdef CONFIG_LIBC_STRING_OPTIMIZE