func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_67_bad() char * data ; CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_67_structType myStruct ; data = NULL; data = ( char * ) malloc ( 10 * sizeof ( char ) ); myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memcpy_67_structType myStruct) char * data = myStruct . structFirst ; char source [ 10 + 1 ] = SRC_STRING ; memcpy ( data , source , ( strlen ( source ) + 1 ) * sizeof ( char ) ); free ( data ); 