labwc/scripts/find-banned.sh
2024-05-13 11:06:04 +02:00

7 lines
241 B
Bash
Executable file

#!/bin/sh
banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat,atof"
echo "Searching for banned functions"
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f \
| ./scripts/helper/find-idents --tokens=$banned -