Hello!
I've found several bugs in cvs-1.11.22 under Windows using MSVC 6.0 and 8.0.

BUG #1
line
   free (cvs_password);
in src/login.c
and line
free (password);
in src/client.c

both free the same buffer, so, when the "login" command is being executed,
"free (cvs_password);" tries to free an already freed pointer. Debug runtime
checks in MSVC catch this.

BUG #2
cvs.exe compiled for 64-bit Windows cannot set correct filetime during the
checkout command. The most correct way to fix this is to add preprocessor
definition HAVE_SYS_UTIME_H to all relevant .dsp files. MSVC (at leat
6.0and later) does have sys/utime.h.

BUG #3
All .dsw and .dsp files must have \r\n line ends instead of \n line ends.
Without that Visual Studio doesn't open them.


I also tried to compile the latest ccvs from the repository using MSVC 8.0.
I didn't succeed but found two errors in windows-NT/dirent.c in lines
 dirp = xmalloc (sizeof DIR);
and
     dp = xmalloc (sizeof struct _dircontents);
According to C standard, sizeof operand which is a type must be
parenthesized.
_______________________________________________
Bug-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to