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-apps.git

commit 680dca11215a8d1654ebc766177594ace2c10dc2
Author: haopengxiang <[email protected]>
AuthorDate: Thu Mar 27 00:10:06 2025 +0800

    ltp: close mq_close/3-1 testcase when open CONFIG_FDCHECK
    
    Caused the cause will used after free on fd
    
    Signed-off-by: haopengxiang <[email protected]>
    Signed-off-by: ligd <[email protected]>
---
 testing/ltp/CMakeLists.txt | 3 ++-
 testing/ltp/Makefile       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/testing/ltp/CMakeLists.txt b/testing/ltp/CMakeLists.txt
index 6f9b7effe..2e458d5e4 100644
--- a/testing/ltp/CMakeLists.txt
+++ b/testing/ltp/CMakeLists.txt
@@ -119,7 +119,8 @@ if(CONFIG_TESTING_LTP)
       ${TESTDIR}/conformance/interfaces/sigprocmask/4-1.c)
 
     if(CONFIG_FDCHECK)
-      list(APPEND BLACKSRCS ${TESTDIR}/conformance/interfaces/mq_close/4-1.c)
+      list(APPEND BLACKSRCS ${TESTDIR}/conformance/interfaces/mq_close/3-1.c
+           ${TESTDIR}/conformance/interfaces/mq_close/4-1.c)
     endif()
 
     if(NOT CONFIG_LIBC_LOCALTIME)
diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile
index 99354eed6..c6f712614 100644
--- a/testing/ltp/Makefile
+++ b/testing/ltp/Makefile
@@ -71,6 +71,7 @@ BLACKSRCS += 
$(TESTDIR)/conformance/interfaces/pthread_sigmask/18-1.c
 BLACKSRCS += $(TESTDIR)/conformance/interfaces/pthread_sigmask/4-1.c
 BLACKSRCS += $(TESTDIR)/conformance/interfaces/sigprocmask/4-1.c
 ifeq ($(CONFIG_FDCHECK),y)
+BLACKSRCS += $(TESTDIR)/conformance/interfaces/mq_close/3-1.c
 BLACKSRCS += $(TESTDIR)/conformance/interfaces/mq_close/4-1.c
 endif
 ifeq ($(CONFIG_LIBC_LOCALTIME),)
@@ -247,7 +248,7 @@ ltp-$(LTPS_VERSION).zip:
        $(call DOWNLOAD,$(LTP_DOWNLOAD_URL),$(LTPS_VERSION).zip, ltp.zip)
 
 $(LTP_UNPACK): ltp-$(LTPS_VERSION).zip
-       $(Q) echo "dowload $(LTP_DOWNLOAD_URL)$(LTPS_VERSION).zip"
+       $(Q) echo "download $(LTP_DOWNLOAD_URL)$(LTPS_VERSION).zip"
        $(Q) unzip -o ltp.zip
        $(Q) rm -f ltp.zip
        $(Q) mv ltp-$(LTPS_VERSION) $(LTP_UNPACK)

Reply via email to