]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: add atof() to banned list
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 13 May 2024 08:56:30 +0000 (10:56 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 13 May 2024 09:06:04 +0000 (11:06 +0200)
scripts/find-banned.sh

index 25e915f9f7e3b2ce9c52b6079f1c840d25b84d8d..2a6a468c431e247461b0b0852a1c609bbee29bf9 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
-banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat"
+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 -