[cvslog] (2008-04-29 17:29:56 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Tue Apr 29 11:29:57 CST 2008


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2008-04-29 17:29:55 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/irc.mod/tclirc.c

Log message:

tcl_maskhost could crash the bot, fixed by FireEgl

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.644 eggdrop1.6/doc/UPDATES1.6:1.645
--- eggdrop1.6/doc/UPDATES1.6:1.644	Mon Apr 28 18:54:13 2008
+++ eggdrop1.6/doc/UPDATES1.6	Tue Apr 29 12:29:44 2008
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.644 2008-04-28 23:54:13 guppy Exp $
+$Id: UPDATES1.6,v 1.645 2008-04-29 17:29:44 guppy Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -12,6 +12,9 @@
 
 
   1.6.20:
+    - tcl_maskhost could crash the bot
+    * Patch by: FireEgl
+
     - changed some JOINs to use DP_SERVER instead of DP_MODE
     * Found by: Komandar - Patch by: guppy
 
Index: eggdrop1.6/src/mod/irc.mod/tclirc.c
diff -u eggdrop1.6/src/mod/irc.mod/tclirc.c:1.51 eggdrop1.6/src/mod/irc.mod/tclirc.c:1.52
--- eggdrop1.6/src/mod/irc.mod/tclirc.c:1.51	Sat Feb 16 15:41:09 2008
+++ eggdrop1.6/src/mod/irc.mod/tclirc.c	Tue Apr 29 12:29:45 2008
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.51 2008-02-16 21:41:09 guppy Exp $
+ * $Id: tclirc.c,v 1.52 2008-04-29 17:29:45 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -495,12 +495,11 @@
 
 static int tcl_maskhost STDVAR
 {
-  char new[121];
-
   BADARGS(2, 2, " nick!user at host");
-
+  char *new = nmalloc(strlen(argv[1]) + 5);
   maskban(argv[1], new);
   Tcl_AppendResult(irp, new, NULL);
+  nfree(new);
   return TCL_OK;
 }
 
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.1194 eggdrop1.6/src/patch.h:1.1195
--- eggdrop1.6/src/patch.h:1.1194	Mon Apr 28 18:54:23 2008
+++ eggdrop1.6/src/patch.h	Tue Apr 29 12:29:44 2008
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.1194 2008-04-28 23:54:23 guppy Exp $
+ * $Id: patch.h,v 1.1195 2008-04-29 17:29:44 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1209426755");            /* current unixtime */
+patch("1209489899");            /* current unixtime */
 /*
  *
  *
  */
-patch("joinqueue");
+patch("maskhostfix");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list