From ff2e3042236e3bf522090d5b07f5f895a4cef921 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 8 Jan 2013 14:01:57 +0000 Subject: [PATCH] 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). --- src/core/ngx_conf_file.c | 1 + 1 file changed, 1 insertion(+) 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; }