Hello,
I am using a simple sample code to check whether CBMC checks for Buffer Overflow or not.
#include<stdio.h>
#include<string.h>
void function(char *str) {
char buffer[16];
strcpy(buffer,str);
}
int main() {
char large_string[256];
int i;
for( i = 0; i < 255; i++)
large_string[i] = 'A';
function(large_string);
}
Even though the plugin checks for the function and for bounds of the destination string, it declares those properties as successful.
Does CBMC not check for buffer overflows when using functions like strcpy and gets ?
