[analyzer][docs] NFC: Extend documentation for MallocOverflow checker

Patch by Benics Balázs

Differential Revision: https://reviews.llvm.org/D70596
This commit is contained in:
Borsik Gabor
2019-11-23 20:55:19 +01:00
parent 46883f46dc
commit 79e2325f14

View File

@@ -1974,6 +1974,12 @@ Check for overflows in the arguments to malloc().
void *p = malloc(n * sizeof(int)); // warn
}
void test2(int n) {
if (n > 100) // gives an upper-bound
return;
void *p = malloc(n * sizeof(int)); // no warning
}
.. _alpha-security-MmapWriteExec:
alpha.security.MmapWriteExec (C)