From 327588105609440bcfaa6591f418638154d55a6f Mon Sep 17 00:00:00 2001 From: PKEuS Date: Thu, 22 May 2014 09:13:29 +0200 Subject: [PATCH] Improved checkBufferOverrun::classInfo (#4667) --- lib/checkbufferoverrun.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.h b/lib/checkbufferoverrun.h index b2fa03447..259632e92 100644 --- a/lib/checkbufferoverrun.h +++ b/lib/checkbufferoverrun.h @@ -263,7 +263,17 @@ private: } std::string classInfo() const { - return "out of bounds checking\n"; + return "Out of bounds checking:\n" + "* Array index out of bounds detection by value flow analysis\n" + "* Dangerous usage of strncat()\n" + "* char constant passed as size to function like memset()\n" + "* strncpy() leaving string unterminated\n" + "* Accessing array with negative index\n" + "* Unsafe usage of main(argv, argc) arguments\n" + "* Accessing array with index variable before checking its value\n" + "* Check for large enough arrays being passed to functions\n" + "* Writing beyond bounds of a buffer\n" + "* Allocating memory with a negative size\n"; } }; /// @}