func: void CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_32_bad() twoIntsStruct * data ; twoIntsStruct * * dataPtr2 = & data ; data = NULL; data = ( twoIntsStruct * ) malloc ( 50 * sizeof ( twoIntsStruct ) ); twoIntsStruct * data = * dataPtr2 ; twoIntsStruct source [ 100 ] ; size_t i ; for (i = 0; i < 100; i++) source [ i ] . intOne = 0; source [ i ] . intTwo = 0; memcpy ( data , source , 100 * sizeof ( twoIntsStruct ) ); free ( data ); 