File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1111 strategy :
1212 matrix :
1313 transport : [ 'tcp', 'shm', 'dma' ]
14+ asan : [ 'ASAN=1', 'ASAN=0' ]
1415 runs-on : ubuntu-latest
1516 timeout-minutes : 5
1617
@@ -28,16 +29,16 @@ jobs:
2829 - name : Build POSIX server
2930 run : |
3031 if [ "${{ matrix.transport }}" = "dma" ]; then
31- cd examples/posix/wh_posix_server && DMA=1 make -j WOLFSSL_DIR=../../../wolfssl
32+ cd examples/posix/wh_posix_server && ${{ matrix.asan }} DMA=1 make -j WOLFSSL_DIR=../../../wolfssl
3233 else
33- cd examples/posix/wh_posix_server && make -j WOLFSSL_DIR=../../../wolfssl
34+ cd examples/posix/wh_posix_server && ${{ matrix.asan }} make -j WOLFSSL_DIR=../../../wolfssl
3435 fi
3536 - name : Build POSIX client
3637 run : |
3738 if [ "${{ matrix.transport }}" = "dma" ]; then
38- cd examples/posix/wh_posix_client && DMA=1 make -j WOLFSSL_DIR=../../../wolfssl
39+ cd examples/posix/wh_posix_client && ${{ matrix.asan }} DMA=1 make -j WOLFSSL_DIR=../../../wolfssl
3940 else
40- cd examples/posix/wh_posix_client && make -j WOLFSSL_DIR=../../../wolfssl
41+ cd examples/posix/wh_posix_client && ${{ matrix.asan }} make -j WOLFSSL_DIR=../../../wolfssl
4142 fi
4243
4344 # Start the server in the background
Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ ifeq ($(DEBUG),1)
7575 LDFLAGS += $(DBGFLAGS)
7676endif
7777
78+ # Add address sanitizer option
79+ ifeq ($(ASAN ) ,1)
80+ CFLAGS += -fsanitize=address
81+ LDFLAGS += -fsanitize=address
82+ endif
83+
7884# # Source files
7985# Assembly source files
8086SRC_ASM +=
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ ifeq ($(DEBUG),1)
6666 LDFLAGS += $(DBGFLAGS)
6767endif
6868
69+ # Add address sanitizer option
70+ ifeq ($(ASAN ) ,1)
71+ CFLAGS += -fsanitize=address
72+ LDFLAGS += -fsanitize=address
73+ endif
74+
6975# Support a SHE-capable build
7076ifeq ($(SHE ) ,1)
7177CFLAGS += -DWOLFHSM_CFG_SHE_EXTENSION
You can’t perform that action at this time.
0 commit comments