func: static void goodG2B() int data ; data = - 1; data = 20; CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fgets_64b_goodG2BSink ( & data ); void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fgets_64b_goodG2BSink(void * dataVoidPtr) int * dataPtr = ( int * ) dataVoidPtr ; int data = ( * dataPtr ) ; size_t i ; int * intPointer ; intPointer = ( int * ) malloc ( data * sizeof ( int ) ); for (i = 0; i < (size_t)data; i++) intPointer [ i ] = 0; free ( intPointer ); 