# HG changeset patch # User Valentin Bartenev # Date 1357653717 0 # Node ID c37b9a17514de832b801fb3fcfcdf60ce7918215 # Parent 2552afcb74d387e443916bc0970b82e8ebbbbb56 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 -r 2552afcb74d3 -r c37b9a17514d src/core/ngx_conf_file.c --- a/src/core/ngx_conf_file.c Mon Dec 31 22:08:19 2012 +0000 +++ b/src/core/ngx_conf_file.c Tue Jan 08 14:01:57 2013 +0000 @@ -946,6 +946,7 @@ } file->flush = NULL; + file->data = NULL; return file; }