mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08: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
@ -946,6 +946,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
file->flush = NULL;
|
file->flush = NULL;
|
||||||
|
file->data = NULL;
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user