Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4870 - trunk/src/core

Anonymous User
September 28, 2012 09:16AM
Author: defan
Date: 2012-09-28 13:15:11 +0000 (Fri, 28 Sep 2012)
New Revision: 4870
URL: http://trac.nginx.org/nginx/changeset/4870/nginx

Log:
Made sure to initialize the entire ngx_file_t structure.

Found by Coverity.


Modified:
trunk/src/core/ngx_cycle.c

Modified: trunk/src/core/ngx_cycle.c
===================================================================
--- trunk/src/core/ngx_cycle.c 2012-09-27 18:01:06 UTC (rev 4869)
+++ trunk/src/core/ngx_cycle.c 2012-09-28 13:15:11 UTC (rev 4870)
@@ -1038,6 +1038,8 @@

ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);

+ ngx_memzero(&file, sizeof(ngx_file_t));
+
file.name = ccf->pid;
file.log = cycle->log;


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4870 - trunk/src/core

Anonymous User 900 September 28, 2012 09:16AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready