func: static void goodG2B() wchar_t * data ; CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_67_structType myStruct ; wchar_t dataGoodBuffer [ 100 ] ; data = dataGoodBuffer; data [ 0 ] = L '\0' myStruct . structFirst = data; CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_67b_goodG2BSink ( myStruct ); void CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_67b_goodG2BSink(CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_67_structType myStruct) wchar_t * data = myStruct . structFirst ; wchar_t source [ 100 ] ; wmemset ( source , L 'C' , 100 - 1 source [ 100 - 1 ] = L '\0' wcscat ( data , source ); 