We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 743b17a commit e7c0202Copy full SHA for e7c0202
cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/TaintedAllocationSize/test.cpp
@@ -46,7 +46,7 @@ int main(int argc, char **argv) {
46
47
int size = tainted * 8;
48
char *chars1 = (char *)malloc(size); // BAD
49
- char *chars2 = new char[size]; // BA
+ char *chars2 = new char[size]; // BAD
50
char *chars3 = new char[8]; // GOOD
51
52
arr1 = (MyStruct *)realloc(arr1, sizeof(MyStruct) * tainted); // BAD
0 commit comments