From d0a000042ada56070c5f80be9455be6704c9efd0 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Fri, 11 Sep 2026 22:39:30 -0700 Subject: [PATCH] CI: test njs with UBSan Build and run the base njs test suite with UndefinedBehaviorSanitizer. --- .github/workflows/check-pr.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 06d13ab9..f112873a 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -65,17 +65,17 @@ jobs: meson install -C build echo "PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV - - name: Configure and make njs + - name: Configure and make njs with UBSan run: | ./configure \ - --cc-opt="$CC_OPT" \ - --ld-opt="$LD_OPT" \ + --cc-opt="$CC_OPT -fsanitize=undefined" \ + --ld-opt="$LD_OPT -fsanitize=undefined" \ || cat build/autoconf.err $MAKE_UTILITY -j$(nproc) - - name: Test njs + - name: Test njs with UBSan run: | - $MAKE_UTILITY test + UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 $MAKE_UTILITY test $MAKE_UTILITY clean - name: Configure and make njs, 32-bit -- 2.47.3