func: static void goodB2G2() void * data ; data = NULL; data = ( void * ) WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Sink ( data ); void CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Sink(void * data) if ( CWE121_Stack_Based_Buffer_Overflow__CWE135_22_goodB2G2Global )  size_t dataLen = wcslen ( ( wchar_t * ) data ) ; void * dest = ( void * ) calloc ( dataLen + 1 , sizeof ( wchar_t ) ) ; memcpy ( dest , data , ( dataLen + 1 ) * sizeof ( wchar_t ) ); printWLine ( ( wchar_t * ) dest ); void printWLine (const wchar_t * line) if ( line != NULL )  wprintf ( L "%ls\n" , line ) free ( dest ); 