func: void bad() wchar_t * data ; data = NULL; data = ( wchar_t * ) malloc ( 50 * sizeof ( wchar_t ) ); wmemset ( data , L 'A' , 50 - 1 data [ 50 - 1 ] = L CWE126_Buffer_Overread__malloc_wchar_t_loop_82_base * baseObject = new CWE126_Buffer_Overread__malloc_wchar_t_loop_82_bad baseObject -> action ( data ); void CWE126_Buffer_Overread__malloc_wchar_t_loop_82_bad::action(wchar_t * data) size_t i , destLen ; wchar_t dest [ 100 ] ; wmemset ( dest , L 'C' , 100 - 1 dest [ 100 - 1 ] = L '\0' destLen = wcslen ( dest ); for (i = 0; i < destLen; i++) 