diff options
author | Toni <matzeton@googlemail.com> | 2023-05-20 16:18:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 16:18:52 +0200 |
commit | 5e8f93c2d157b4af818bc80b2737ee17e920e8e9 (patch) | |
tree | fe4b1c70eb91dacfc139388c5e33dda0d3499b16 /.github | |
parent | 8f718c90519171e09e4e9877bf3c59cc6343c794 (diff) |
Improved missing usage of nDPIs malloc wrapper. Fixes #1978. (#1979)
* added CI check
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20ddbeacd..2cbc50b95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -300,12 +300,18 @@ jobs: - name: Print nDPI long help if: startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.os, 'windows') run: | - ./example/ndpiReader -H + ./example/ndpiReader -H - name: Install nDPI if: startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.os, 'windows') run: | make install DESTDIR=$(realpath _install) ls -alhHR _install + - name: Test nDPI [SYMBOLS] + if: (startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'mac')) && startsWith(matrix.arch, 'x86_64') + run: | + ./utils/check_symbols.sh || { FAILED=$?; echo "::error file=${NDPI_LIB}::Unwanted libc symbols found: ${FAILED}. Please make sure to use only ndpi_malloc/ndpi_calloc/ndpi_realloc/ndpi_free wrapper instead of malloc/calloc/realloc/free."; false; } + env: + NDPI_LIB: src/lib/libndpi.a - name: Test nDPI [DIFF] if: startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.os, 'windows') run: | |