From: Valentin Bartenev Date: Tue, 8 Jan 2013 14:01:57 +0000 (+0000) Subject: The data pointer in ngx_open_file_t objects must be initialized. X-Git-Tag: release-1.3.11~5 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=ff2e3042236e3bf522090d5b07f5f895a4cef921;p=nginx.git 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). --- diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index 0eb6388cb..ed7a2ce92 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -946,6 +946,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name) } file->flush = NULL; + file->data = NULL; return file; }