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 429f24afbdf9b21d85792cba525ebb1be0ceb58e Author: ligd <[email protected]> AuthorDate: Tue Mar 25 21:31:36 2025 +0800 ltp: close mq_close/4-1 testcase when open CONFIG_FDCHECK Caused the cause will used after free on fd Signed-off-by: ligd <[email protected]> --- testing/ltp/CMakeLists.txt | 4 ++++ testing/ltp/Makefile | 3 +++ 2 files changed, 7 insertions(+) diff --git a/testing/ltp/CMakeLists.txt b/testing/ltp/CMakeLists.txt index 1152b8963..6f9b7effe 100644 --- a/testing/ltp/CMakeLists.txt +++ b/testing/ltp/CMakeLists.txt @@ -118,6 +118,10 @@ if(CONFIG_TESTING_LTP) ${TESTDIR}/conformance/interfaces/pthread_sigmask/4-1.c ${TESTDIR}/conformance/interfaces/sigprocmask/4-1.c) + if(CONFIG_FDCHECK) + list(APPEND BLACKSRCS ${TESTDIR}/conformance/interfaces/mq_close/4-1.c) + endif() + if(NOT CONFIG_LIBC_LOCALTIME) list(APPEND BLACKSRCS ${TESTDIR}/conformance/definitions/time_h/34-1-buildonly.c diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile index 1fc2c943d..99354eed6 100644 --- a/testing/ltp/Makefile +++ b/testing/ltp/Makefile @@ -70,6 +70,9 @@ BLACKSRCS += $(TESTDIR)/conformance/interfaces/clock_nanosleep/1-4.c 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/4-1.c +endif ifeq ($(CONFIG_LIBC_LOCALTIME),) BLACKSRCS += $(TESTDIR)/conformance/definitions/time_h/34-1-buildonly.c BLACKSRCS += $(TESTDIR)/conformance/definitions/time_h/35-3-buildonly.c
