[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sun Oct 14 11:21:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-10-14 16:20:50 UTC
Commited by: Matthew Hallacy <poptix at techmonkeys.org>

Modified files:
     src/userrec.c src/patch.h

Log message:

another adduser overflow and memleak

---------------------- diff included ----------------------
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.549 eggdrop1.7/src/patch.h:1.550
--- eggdrop1.7/src/patch.h:1.549	Fri Oct 12 12:40:46 2001
+++ eggdrop1.7/src/patch.h	Sun Oct 14 11:20:39 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.549 2001/10/12 17:40:46 tothwolf Exp $
+ * $Id: patch.h,v 1.550 2001/10/14 16:20:39 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1002904495");		/* current unixtime */
+patch("1003076143");		/* current unixtime */
 /*
  *
  *
  */
-patch("nosplitnicks");
+patch("adduseroverflow");
 /*
  *
  *
Index: eggdrop1.7/src/userrec.c
diff -u eggdrop1.7/src/userrec.c:1.35 eggdrop1.7/src/userrec.c:1.36
--- eggdrop1.7/src/userrec.c:1.35	Thu Oct 11 13:24:01 2001
+++ eggdrop1.7/src/userrec.c	Sun Oct 14 11:20:39 2001
@@ -4,7 +4,7 @@
  *   a bunch of functions to find and change user records
  *   change and check user (and channel-specific) flags
  *
- * $Id: userrec.c,v 1.35 2001/10/11 18:24:01 tothwolf Exp $
+ * $Id: userrec.c,v 1.36 2001/10/14 16:20:39 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -508,9 +508,11 @@
   if (!noxtra) {
     xk = malloc(sizeof(struct xtra_key));
     malloc_strcpy(xk->key, "created");
-    xk->data = malloc(sizeof(time_t));
-    sprintf(xk->data, "%lu", now);
+    xk->data = malloc(15);		/* should be enough, this should be changed  */
+    sprintf(xk->data, "%lu", now);	/* when time_t is a 64 bit integer.. -poptix */ 
     set_user(&USERENTRY_XTRA, u, xk);
+    free(xk->data);
+    free(xk);
   }
   /* Strip out commas -- they're illegal */
   if (host && host[0]) {
----------------------- End of diff -----------------------



More information about the Changes mailing list