httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/threadproc/unix proc.c
Date Fri, 15 Sep 2000 21:07:34 GMT
trawick     00/09/15 14:07:34

  Modified:    src      CHANGES
               src/lib/apr/threadproc/unix proc.c
  Log:
  Fix a bug in apr_create_process() for Unix.  The NULL signifying
  the end of the parameters to execve() was stored in the wrong
  location, overlaying the storage beyond the newargs[] array and
  also passing uninitialized storage to execve(), which would
  sometimes fail with EFAULT.
  
  Revision  Changes    Path
  1.230     +6 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.229
  retrieving revision 1.230
  diff -u -r1.229 -r1.230
  --- CHANGES	2000/09/15 16:50:38	1.229
  +++ CHANGES	2000/09/15 21:07:33	1.230
  @@ -1,4 +1,10 @@
   Changes with Apache 2.0a7
  +  *) Fix a bug in apr_create_process() for Unix.  The NULL signifying
  +     the end of the parameters to execve() was stored in the wrong
  +     location, overlaying the storage beyond the newargs[] array and 
  +     also passing uninitialized storage to execve(), which would 
  +     sometimes fail with EFAULT.  [Jeff Trawick]
  +
     *) Fix a bug parsing configuration file containers.  With a sequence
        like this in the config file
   
  
  
  
  1.38      +1 -1      apache-2.0/src/lib/apr/threadproc/unix/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/threadproc/unix/proc.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- proc.c	2000/08/23 23:28:49	1.37
  +++ proc.c	2000/09/15 21:07:34	1.38
  @@ -331,7 +331,7 @@
                   newargs[i + 2] = args[i]; 
                   i++;
               }
  -            newargs[i + 3] = NULL;
  +            newargs[i + 2] = NULL;
               if (attr->detached) {
                   apr_detach();
               }
  
  
  

Mime
View raw message