diff options
author | lns <matzeton@googlemail.com> | 2023-05-16 15:07:43 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2023-05-20 15:14:51 +0200 |
commit | c58c83ea2d70bf679e9a3350bae9aa60f24b9f7f (patch) | |
tree | 4893e0b5c7e26e4bce6d7f18726fa72e5761d0f3 /.github | |
parent | 8c224b464f36da0497c9ef7c2fe2ec3c135a01ba (diff) |
Improved missing usage of nDPIs malloc wrapper. Fixes #1978.improved/libc-malloc-wrapper-and-checks
* 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: | |