From 1b7199ea162b739f08471a94663176676d67f5a4 Mon Sep 17 00:00:00 2001 From: Jon Hood Date: Fri, 8 Sep 2017 13:20:28 -0500 Subject: [PATCH] add detection of errant equal, mismatch, and is_permutation --- flawfinder | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/flawfinder b/flawfinder index e99c2c9..634e5c9 100755 --- a/flawfinder +++ b/flawfinder @@ -816,10 +816,16 @@ def c_static_array(hit): add_warning(hit) # Found a static array, warn about it. +def cpp_unsafe_stl(hit): + # Use one of the overloaded classes from the STL in C++14 and higher + # instead of the > charbuf, where charbuf is a char array; the problem # is that flawfinder doesn't have type information, and ">>" is safe with