func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_loop_67_bad() int * data ; data = ( int * ) malloc ( 50 * sizeof ( int ) ); myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_loop_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_loop_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int_loop_67_structType myStruct) int * data = myStruct . structFirst ; data [ i ] = source [ i ]; printIntLine ( data [ 0 ] ); void printIntLine (int intNumber) printf ( "%d\n" , intNumber ); free ( data ); 