Set ASAN_OPTIONS=detect_leaks=0 for CLI tools to avoid false
positives, while rspamd daemon still has leak detection enabled
# Use rspamadm from build
export PATH="${GITHUB_WORKSPACE}/install/bin:$PATH"
+ # Disable leak detection for rspamadm utility
+ export ASAN_OPTIONS=detect_leaks=0
+
# Generate keypair for fuzzy worker
KEYPAIR=$(rspamadm keypair -u)
FUZZY_PRIVKEY=$(echo "$KEYPAIR" | grep privkey | cut -d'"' -f2)
set -e
+# Disable leak detection for rspamc utility to avoid false positives
+export ASAN_OPTIONS=detect_leaks=0
+
# Configuration
RSPAMD_HOST=${RSPAMD_HOST:-localhost}
CONTROLLER_PORT=${CONTROLLER_PORT:-50002}