func: void CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_31_bad() int * data ; data = NULL; data = ( int * ) malloc ( 10 ); int * dataCopy = data ; int * data = dataCopy ; int source [ 10 ] = { 0 } ; size_t i ; for (i = 0; i < 10; i++) data [ i ] = source [ i ]; free ( data ); 