Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
January 08, 2013 09:04AM
Author: vbart
Date: 2013-01-08 14:01:57 +0000 (Tue, 08 Jan 2013)
New Revision: 5002
URL: http://trac.nginx.org/nginx/changeset/5002/nginx

Log:
The data pointer in ngx_open_file_t objects must be initialized.

Uninitialized pointer may result in arbitrary segfaults if access_log is used
without buffer and without variables in file path.

Patch by Tatsuhiko Kubo (ticket #268).



Modified:
trunk/src/core/ngx_conf_file.c

Modified: trunk/src/core/ngx_conf_file.c
===================================================================
--- trunk/src/core/ngx_conf_file.c 2012-12-31 22:08:19 UTC (rev 5001)
+++ trunk/src/core/ngx_conf_file.c 2013-01-08 14:01:57 UTC (rev 5002)
@@ -946,6 +946,7 @@
}

file->flush = NULL;
+ file->data = NULL;

return file;
}

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

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

Anonymous User 827 January 08, 2013 09:04AM



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

Online Users

Guests: 145
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