func: void CWE194_Unexpected_Sign_Extension__negative_malloc_66_bad() short data ; short dataArray [ 5 ] ; data = 0; data = - 1; dataArray [ 2 ] = data; CWE194_Unexpected_Sign_Extension__negative_malloc_66b_badSink ( dataArray ); void CWE194_Unexpected_Sign_Extension__negative_malloc_66b_badSink(short dataArray[]) short data = dataArray [ 2 ] ; if ( data < 100 )  char * dataBuffer = ( char * ) malloc ( data ) ; memset ( dataBuffer , 'A' , data - 1 ); dataBuffer [ data - 1 ] = '\0'; free ( dataBuffer ); 