func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_67_bad() char * data ; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_67_structType myStruct ; data = NULL; data = ( char * ) malloc ( 50 * sizeof ( char ) ); data [ 0 ] = '\0'; myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_67_structType myStruct) char * data = myStruct . structFirst ; free ( data ); 