home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / exploits / irckill / patches / BitchX / BitchX-74p2.patch next >
Encoding:
Text File  |  1998-08-13  |  565 b   |  27 lines

  1. --- /home/nyt/dcc.c    Fri Apr 17 20:47:42 1998
  2. +++ dcc.c    Thu Apr 16 00:52:46 1998
  3. @@ -9,6 +9,12 @@
  4.   * Heavily modified Colten Edwards 1996-97
  5.   */
  6.  
  7. +/*
  8. + * april 11, 1998
  9. + * patched dcc overflow - nyt
  10. +*/
  11. +
  12. +
  13.  #include "irc.h"
  14.  #include <sys/stat.h>
  15.  #include <stdarg.h>
  16. @@ -1734,8 +1740,8 @@
  17.  {
  18.      struct    sockaddr_in    remaddr;
  19.      int    sra;
  20. -    char    tmp[MAX_DCC_BLOCK_SIZE + 1];
  21. -    char    tmp2[MAX_DCC_BLOCK_SIZE + 1];
  22. +    char    tmp[MAX_DCC_BLOCK_SIZE*4 + 1];
  23. +    char    tmp2[MAX_DCC_BLOCK_SIZE*4 + 1];
  24.      char    *s = NULL, *bufptr = NULL;
  25.      char    *buf = NULL;
  26.      u_32int_t    bytesread;
  27.