httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apachen/src/os/win32 util_win32.c
Date Sun, 14 Dec 1997 14:53:48 GMT
ben         97/12/14 06:53:48

  Modified:    src      CHANGES
               src/os/win32 util_win32.c
  Log:
  Fix buffer overflow problem.
  PR: 1378
  Submitted by:	malcolm@mgdev.demon.co.uk
  Reviewed by:	Ben Laurie
  
  Revision  Changes    Path
  1.528     +5 -1      apachen/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/CHANGES,v
  retrieving revision 1.527
  retrieving revision 1.528
  diff -u -r1.527 -r1.528
  --- CHANGES	1997/12/14 14:39:35	1.527
  +++ CHANGES	1997/12/14 14:53:45	1.528
  @@ -1,7 +1,10 @@
   Changes with Apache 1.3b4
   
  +  *) WIN32: avoid overflows during file canonicalisations.
  +     [malcolm@mgdev.demon.co.uk] #PR1378
  +
     *) WIN32: set_file_slot() didn't detect absolute paths. [Ben Laurie]
  -     PR#1511
  +     PR#1511, 1508
   
     *) WIN32: mod_status display header didn't match fields. [Ben Laurie]
   
  @@ -23,6 +26,7 @@
        [Ben Hyde] PR#1387
   
     *) WIN32: Only lowercase the part of the path that is real. [Ben Laurie]
  +     PR#1505
   
     *) Fix problems with timeouts in inetd mode and -X mode.  [Dean Gaudet]
   
  
  
  
  1.6       +2 -2      apachen/src/os/win32/util_win32.c
  
  Index: util_win32.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/os/win32/util_win32.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- util_win32.c	1997/11/27 14:32:40	1.5
  +++ util_win32.c	1997/12/14 14:53:47	1.6
  @@ -7,7 +7,7 @@
   
   static void sub_canonical_filename(char *szCanon, const char *szFile)
   {
  -    char buf[_MAX_PATH];
  +    char buf[HUGE_STRING_LEN];
       int n;
       char *szFilePart;
       WIN32_FIND_DATA d;
  @@ -56,7 +56,7 @@
   
   API_EXPORT(char *) os_canonical_filename(pool *pPool, const char *szFile)
   {
  -    char buf[_MAX_PATH];
  +    char buf[HUGE_STRING_LEN];
   
       sub_canonical_filename(buf, szFile);
       return pstrdup(pPool, buf);
  
  
  

Mime
View raw message