mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
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).
This commit is contained in:
parent
f3ab6ec5ba
commit
ff2e304223
1 changed files with 1 additions and 0 deletions
|
|
@ -946,6 +946,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
|
|||
}
|
||||
|
||||
file->flush = NULL;
|
||||
file->data = NULL;
|
||||
|
||||
return file;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue