func: static void goodG2B() int * data ; int * dataArray [ 5 ] ; data = NULL; data = ( int * ) malloc ( 10 * sizeof ( int ) ); dataArray [ 2 ] = data; CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_66b_goodG2BSink ( dataArray ); void CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_66b_goodG2BSink(int * dataArray[]) int * data = dataArray [ 2 ] ; int source [ 10 ] = { 0 } ; size_t i ; for (i = 0; i < 10; i++) data [ i ] = source [ i ]; free ( data ); 