func: void bad() wchar_t * data ; data = NULL; CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad * badObject = new CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad ( data ) ; CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad::CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad(wchar_t * dataCopy) data = dataCopy; data = ( wchar_t * ) malloc ( 50 * sizeof ( wchar_t ) ); wmemset ( data , L 'A' , 50 - 1 data [ 50 - 1 ] = L '\0' delete badObject CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad::~CWE126_Buffer_Overread__malloc_wchar_t_memmove_84_bad() free ( data ); 