From 7e655111a990520e78861c729c44a21a8dbfa254 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Tue, 29 Jul 2014 08:39:30 -0400 Subject: [PATCH] flawfinder: Make comments fit in 80 char columns --- flawfinder | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flawfinder b/flawfinder index 762cf12..3029099 100755 --- a/flawfinder +++ b/flawfinder @@ -528,9 +528,10 @@ def c_buffer(hit): p_dangerous_strncat = re.compile(r'^\s*sizeof\s*(\(\s*)?[A-Za-z_$0-9]+' + r'\s*(\)\s*)?(-\s*1\s*)?$') -# This is a heuristic: constants in C are usually given in all upper case letters. -# Yes, this need not be true, but it's true often enough that it's worth -# using as a heuristic. strncat better not be passed a constant as the length! +# This is a heuristic: constants in C are usually given in all +# upper case letters. Yes, this need not be true, but it's true often +# enough that it's worth using as a heuristic. +# We check because strncat better not be passed a constant as the length! p_looks_like_constant = re.compile(r'^\s*[A-Z][A-Z_$0-9]+\s*(-\s*1\s*)?$') def c_strncat(hit):