Menu

#4 memory allocation bug

open
nobody
None
9
2000-09-03
2000-07-28
No

in cvsd-0.8.b/cvsd.c

623 /* build arguments array for `cvs pserver' */
624
625 args = (char **)malloc( (2 + verbose + num_repos + 1)
* sizeof(char) );

you must allocate 2+verbose+num_repos+1
of char *, not char

funny thing, everything DID work without any problems,
until i tried a cvsd.conf with 18 cvsroots

Discussion

  • Philippe Kehl

    Philippe Kehl - 2000-09-03

    Hmm... thanks..

     
  • Philippe Kehl

    Philippe Kehl - 2000-09-03
    • priority: 5 --> 9
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.