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