[nginx] svn commit: r5002 - trunk/src/core
vbart at nginx.com
vbart at nginx.com
Tue Jan 8 14:01:58 UTC 2013
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;
}
More information about the nginx-devel
mailing list