func: void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fgets_66_bad() int data ; int dataArray [ 5 ] ; data = - 1; char inputBuffer [ CHAR_ARRAY_SIZE ] = "" ; if ( fgets ( inputBuffer , CHAR_ARRAY_SIZE , stdin ) != NULL )  data = atoi ( inputBuffer ); dataArray [ 2 ] = data; CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fgets_66b_badSink ( dataArray ); void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fgets_66b_badSink(int dataArray[]) int data = dataArray [ 2 ] ; size_t i ; int * intPointer ; intPointer = ( int * ) malloc ( data * sizeof ( int ) ); for (i = 0; i < (size_t)data; i++) intPointer [ i ] = 0; free ( intPointer ); 