This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c113a224e8432cca8456b0f509b7716091594ee9
Author: yangguangcai <[email protected]>
AuthorDate: Mon Feb 26 22:59:52 2024 +0800

    newlibc:skip asan check.
    
    Signed-off-by: yangguangcai <[email protected]>
---
 libs/libc/string/lib_stpcpy.c  | 1 +
 libs/libc/string/lib_strcat.c  | 1 +
 libs/libc/string/lib_strchr.c  | 1 +
 libs/libc/string/lib_strcmp.c  | 1 +
 libs/libc/string/lib_strcpy.c  | 1 +
 libs/libc/string/lib_strlen.c  | 1 +
 libs/libc/string/lib_strncmp.c | 1 +
 libs/libc/string/lib_strncpy.c | 1 +
 8 files changed, 8 insertions(+)

diff --git a/libs/libc/string/lib_stpcpy.c b/libs/libc/string/lib_stpcpy.c
index c9eff7ad14..8728d4c222 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 5d7dc8dcb0..175ff66776 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 463b485001..750a56f3b7 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 1a99f8109c..8be2157859 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 27cddca36f..b8d34089ba 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 d13968c26d..b465a1dbfb 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 8000c17be3..92f79e957e 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 ccceb5d87b..29a903e92b 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

Reply via email to