func: static void goodG2B2() short data ; data = 0; data = CWE194_Unexpected_Sign_Extension__rand_malloc_22_goodG2B2Source ( data ); short CWE194_Unexpected_Sign_Extension__rand_malloc_22_goodG2B2Source(short data) if ( CWE194_Unexpected_Sign_Extension__rand_malloc_22_goodG2B2Global )  data = 100 - 1; return data ; if ( data < 100 )  char * dataBuffer = ( char * ) malloc ( data ) ; memset ( dataBuffer , 'A' , data - 1 ); dataBuffer [ data - 1 ] = '\0'; free ( dataBuffer ); 