Improved checkBufferOverrun::classInfo (#4667)
This commit is contained in:
parent
35528ca708
commit
3275881056
|
@ -263,7 +263,17 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string classInfo() const {
|
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";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/// @}
|
/// @}
|
||||||
|
|
Loading…
Reference in New Issue