Open main menu

CDOT Wiki β

Team 5 Bugs Report

Revision as of 23:29, 16 September 2013 by Yiqi Liu (talk | contribs)
  • On local machine (Windows), while compiling with GCC,
   ncursor.h : No such file or directory

(GNU library not existing on Windows platform by default)

  • String Overlapping during strncpy() causing memory corruption.
     if ((int)strlen(str)>fieldLen){
       char * strOut;
       //strOut = new char[fieldLen + 1];
       strncpy(strOut, str, fieldLen);
       strOut[fieldLen]='\0';
       
       //delete [] strOut;
      }

( Commented being the fix)