Skip to content

Commit c8151c3

Browse files
committed
Add test for overflows due to mult in calloc implementation
1 parent 3127a30 commit c8151c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// PARAM: --enable ana.int.interval
2+
#include <stdlib.h>
3+
4+
int main() {
5+
size_t a, b;
6+
unsigned char *randomString = (unsigned char *)calloc(a,b); // NOWARN (signed integer overflow in *)
7+
return 0;
8+
}

0 commit comments

Comments
 (0)