func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_67_bad() twoIntsStruct * data ; data = ( twoIntsStruct * ) malloc ( 50 * sizeof ( twoIntsStruct ) ); myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_67_structType myStruct) twoIntsStruct * data = myStruct . structFirst ; memcpy ( data , source , 100 * sizeof ( twoIntsStruct ) ); printStructLine ( & data [ 0 ] ); void printStructLine (const twoIntsStruct * structTwoIntsStruct) printf ( "%d -- %d\n" , structTwoIntsStruct -> intOne , structTwoIntsStruct -> intTwo ); free ( data ); 