From 2c200379f270fce277118f468a55731f0607d50c Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 8 May 2018 14:53:32 -0700 Subject: [PATCH] scripts/check_format.sh: ban use of strcat() Change-Id: I44d93da4c5ce51dc12c385bb8c1d56bf1336d526 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/410499 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- scripts/check_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 5d1e8070c..d5f55f733 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -77,7 +77,7 @@ rm -f whitespace.log echo -n "Checking for use of forbidden library functions..." -git grep --line-number -w '\(strncpy\|strcpy\|sprintf\|vsprintf\)' -- './*.c' ':!lib/vhost/rte_vhost*/**' > badfunc.log || true +git grep --line-number -w '\(strncpy\|strcpy\|strcat\|sprintf\|vsprintf\)' -- './*.c' ':!lib/vhost/rte_vhost*/**' > badfunc.log || true if [ -s badfunc.log ]; then echo " Forbidden library functions detected" cat badfunc.log