buffer overrun: Remove bailout. There is no test case and I fail to produce false positives.
This commit is contained in:
parent
d0819e4792
commit
cb48aae594
|
@ -1293,10 +1293,6 @@ void CheckBufferOverrun::checkGlobalAndLocalVariable()
|
||||||
negativeMemoryAllocationSizeError(tok);
|
negativeMemoryAllocationSizeError(tok);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @todo false negatives: this may be too conservative */
|
|
||||||
if (!var || !var->isPointer() || var->typeStartToken()->next() != var->typeEndToken())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// malloc() gets count of bytes and not count of
|
// malloc() gets count of bytes and not count of
|
||||||
// elements, so we should calculate count of elements
|
// elements, so we should calculate count of elements
|
||||||
// manually
|
// manually
|
||||||
|
|
Loading…
Reference in New Issue