labwc/scripts/find-banned.sh

8 lines
241 B
Bash
Raw Normal View History

2023-01-30 21:24:52 +00:00
#!/bin/sh
2024-05-13 10:56:30 +02:00
banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat,atof"
2023-01-30 21:24:52 +00:00
2024-05-13 10:56:30 +02:00
echo "Searching for banned functions"
2023-01-30 21:24:52 +00:00
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f \
| ./scripts/helper/find-idents --tokens=$banned -