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