func: void bad() void * data ; data = NULL; data = ( void * ) WIDE_STRING; CWE121_Stack_Based_Buffer_Overflow__CWE135_82_base * baseObject = new CWE121_Stack_Based_Buffer_Overflow__CWE135_82_bad baseObject -> action ( data ); void CWE121_Stack_Based_Buffer_Overflow__CWE135_82_bad::action(void * data) size_t dataLen = strlen ( ( char * ) data ) ; void * dest = ( void * ) calloc ( dataLen + 1 , 1 ) ; memcpy ( dest , data , ( dataLen + 1 ) ); free ( dest ); 