The official NGINX Open Source repository. https://nginx.org/
Find a file
Maxim Dounin f57527df81 Fixed handling of non-null-terminated unix sockets.
At least FreeBSD, macOS, NetBSD, and OpenBSD can return unix sockets
with non-null-terminated sun_path.  Additionally, the address may become
non-null-terminated if it does not fit into the buffer provided and was
truncated (may happen on macOS, NetBSD, and Solaris, which allow unix socket
addresess larger than struct sockaddr_un).  As such, ngx_sock_ntop() might
overread the sockaddr provided, as it used "%s" format and thus assumed
null-terminated string.

To fix this, the ngx_strnlen() function was introduced, and it is now used
to calculate correct length of sun_path.
2017-10-04 21:19:38 +03:00
auto Configure: fixed --without_http. 2017-03-16 20:38:31 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: vim syntax, update 3rd party module directives. 2017-03-01 23:41:39 +08:00
docs nginx-1.12.1-RELEASE 2017-07-11 16:24:04 +03:00
misc Updated PCRE used for win32 builds. 2017-08-08 15:21:10 +03:00
src Fixed handling of non-null-terminated unix sockets. 2017-10-04 21:19:38 +03:00
.hgtags release-1.12.1 tag 2017-07-11 16:24:05 +03:00