func: void CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_67_bad() int * data ; CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_67_structType myStruct ; data = NULL; data = ( int * ) malloc ( 10 ); myStruct . structFirst = data; CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_67b_badSink ( myStruct ); void CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_67b_badSink(CWE122_Heap_Based_Buffer_Overflow__CWE131_loop_67_structType myStruct) int * data = myStruct . structFirst ; int source [ 10 ] = { 0 } ; size_t i ; for (i = 0; i < 10; i++) data [ i ] = source [ i ]; free ( data ); 