httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/winnt registry.c
Date Sat, 25 May 2002 20:09:24 GMT
wrowe       02/05/25 13:09:24

  Modified:    server/mpm/winnt registry.c
  Log:
    Simple fix for possibly unterminated REG_SZ data
  
  Revision  Changes    Path
  1.36      +3 -1      httpd-2.0/server/mpm/winnt/registry.c
  
  Index: registry.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/registry.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- registry.c	25 May 2002 20:06:32 -0000	1.35
  +++ registry.c	25 May 2002 20:09:24 -0000	1.36
  @@ -211,7 +211,9 @@
       if (rv != ERROR_SUCCESS)
   	return_error(rv);
   
  -    *ppValue = apr_palloc(p, nSize);
  +    *ppValue = apr_palloc(p, nSize + 1);
  +    (*ppValue)[nSize] = '\0';
  +
       rv = RegQueryValueEx(hKey, 
   			 name,		/* key name */
   			 NULL,		/* reserved */
  
  
  

Mime
View raw message