Add scripts/find-banned.sh

This commit is contained in:
Johan Malm 2023-01-30 21:24:52 +00:00 committed by Johan Malm
parent 235a8ad9bc
commit 29031a4c85
4 changed files with 425 additions and 0 deletions

6
scripts/find-banned.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat"
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f \
| ./scripts/helper/find-idents --tokens=$banned -