func: void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_22_bad() int data ; data = - 1; data = CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_22_badSource ( data ); int CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_22_badSource(int data) if ( CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_22_badGlobal )  data = INT_MAX / 2 + 2; return data ; size_t i ; int * intPointer ; intPointer = ( int * ) malloc ( data * sizeof ( int ) ); for (i = 0; i < (size_t)data; i++) intPointer [ i ] = 0; free ( intPointer ); 