func: void CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_66_bad() twoIntsStruct * data ; data = ( twoIntsStruct * ) malloc ( sizeof ( data ) ); data -> intOne = 1; data -> intTwo = 2; dataArray [ 2 ] = data; CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_66b_badSink ( dataArray ); void CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_66b_badSink(twoIntsStruct * dataArray[]) twoIntsStruct * data = dataArray [ 2 ] ; printStructLine ( data ); void printStructLine (const twoIntsStruct * structTwoIntsStruct) printf ( "%d -- %d\n" , structTwoIntsStruct -> intOne , structTwoIntsStruct -> intTwo ); free ( data ); 