httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1442326 - in /httpd/httpd/trunk: CHANGES os/unix/unixd.c
Date Mon, 04 Feb 2013 20:15:10 GMT
Author: sf
Date: Mon Feb  4 20:15:10 2013
New Revision: 1442326

URL: http://svn.apache.org/viewvc?rev=1442326&view=rev
Log:
Fix valgrind warning about uninitialized memory in argument to semctl

PR: 53690
Submitted by: Mikhail T. <mi+apache aldan algebra com>

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/os/unix/unixd.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1442326&r1=1442325&r2=1442326&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Mon Feb  4 20:15:10 2013
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Fix valgrind warning about uninitialized memory in argument to
+     semctl. PR 53690. [Mikhail T. <mi+apache aldan algebra com>]
+
   *) mod_proxy_connect: Don't keepalive the connection to the client if the
      backend closes the connection. PR 54474. [Pavel Mateja <pavel netsafe cz>]
 

Modified: httpd/httpd/trunk/os/unix/unixd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/os/unix/unixd.c?rev=1442326&r1=1442325&r2=1442326&view=diff
==============================================================================
--- httpd/httpd/trunk/os/unix/unixd.c (original)
+++ httpd/httpd/trunk/os/unix/unixd.c Mon Feb  4 20:15:10 2013
@@ -241,7 +241,7 @@ AP_DECLARE(apr_status_t) ap_unixd_set_pr
             };
 #endif
             union semun ick;
-            struct semid_ds buf;
+            struct semid_ds buf = { { 0 } };
 
             apr_os_proc_mutex_get(&ospmutex, pmutex);
             buf.sem_perm.uid = ap_unixd_config.user_id;



Mime
View raw message