func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53_bad() twoIntsStruct * data ; data = ( twoIntsStruct * ) malloc ( 50 * sizeof ( twoIntsStruct ) ); CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53b_badSink ( data ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53b_badSink(twoIntsStruct * data) CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53c_badSink ( data ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53c_badSink(twoIntsStruct * data) CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53d_badSink ( data ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_loop_53d_badSink(twoIntsStruct * data) data [ i ] = source [ i ]; printStructLine ( & data [ 0 ] ); void printStructLine (const twoIntsStruct * structTwoIntsStruct) printf ( "%d -- %d\n" , structTwoIntsStruct -> intOne , structTwoIntsStruct -> intTwo ); free ( data ); 