aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/third_party/src/gcrypt/aesni.c2
-rwxr-xr-xutils/check_symbols.sh16
2 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/third_party/src/gcrypt/aesni.c b/src/lib/third_party/src/gcrypt/aesni.c
index d1379de6f..ecce04fc5 100644
--- a/src/lib/third_party/src/gcrypt/aesni.c
+++ b/src/lib/third_party/src/gcrypt/aesni.c
@@ -97,7 +97,7 @@ int mbedtls_aesni_has_support( unsigned int what )
break; /* We giveup */
}
- free(line);
+ free(line); // Do not replace with ndpi_free(). See `man 3 getline`.
fclose(fd);
has_aesni_checked = 1;
diff --git a/utils/check_symbols.sh b/utils/check_symbols.sh
index 32f4fac89..5ab064c18 100755
--- a/utils/check_symbols.sh
+++ b/utils/check_symbols.sh
@@ -24,7 +24,21 @@ for line in `nm -P -u "${NDPI_LIB}"`; do
if [ ! -z "${FOUND_SYMBOL}" ]; then
SKIP=0
case "${CURRENT_OBJECT}" in
- '[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]') SKIP=1 ;;
+ '[roaring.o]')
+ case "${FOUND_SYMBOL}" in
+ 'malloc'|'calloc'|'realloc'|'free') SKIP=1 ;;
+ esac
+ ;;
+ '[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]')
+ case "${FOUND_SYMBOL}" in
+ 'malloc'|'calloc'|'free') SKIP=1 ;;
+ esac
+ ;;
+ '[gcrypt_light.o]')
+ case "${FOUND_SYMBOL}" in
+ 'free') SKIP=1 ;;
+ esac
+ ;;
esac
if [ ${SKIP} -eq 0 ]; then