diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2013-01-08 14:01:57 +0000 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2013-01-08 14:01:57 +0000 |
| commit | ff2e3042236e3bf522090d5b07f5f895a4cef921 (patch) | |
| tree | 4ee522cb4865472377b35478e33e519b8f32c83b /src/core/ngx_conf_file.c | |
| parent | f3ab6ec5ba7f369616d344c3f11dee983153d489 (diff) | |
| download | nginx-ff2e3042236e3bf522090d5b07f5f895a4cef921.tar.gz nginx-ff2e3042236e3bf522090d5b07f5f895a4cef921.tar.bz2 | |
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).
Diffstat (limited to 'src/core/ngx_conf_file.c')
| -rw-r--r-- | src/core/ngx_conf_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
