func: static void goodB2G() void * data ; CWE121_Stack_Based_Buffer_Overflow__CWE135_34_unionType myUnion ; data = NULL; data = ( void * ) WIDE_STRING; myUnion . unionFirst = data; void * data = myUnion . unionSecond ; size_t dataLen = wcslen ( ( wchar_t * ) data ) ; void * dest = ( void * ) calloc ( dataLen + 1 , sizeof ( wchar_t ) ) ; memcpy ( dest , data , ( dataLen + 1 ) * sizeof ( wchar_t ) ); free ( dest ); 