Mercurial > hg > nginx
comparison src/core/ngx_conf_file.c @ 5001:c37b9a17514d
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).
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 08 Jan 2013 14:01:57 +0000 |
parents | a0599b56e748 |
children | f941cf265cc5 |
comparison
equal
deleted
inserted
replaced
5000:2552afcb74d3 | 5001:c37b9a17514d |
---|---|
944 file->fd = ngx_stderr; | 944 file->fd = ngx_stderr; |
945 file->name = *name; | 945 file->name = *name; |
946 } | 946 } |
947 | 947 |
948 file->flush = NULL; | 948 file->flush = NULL; |
949 file->data = NULL; | |
949 | 950 |
950 return file; | 951 return file; |
951 } | 952 } |
952 | 953 |
953 | 954 |