The official NGINX Open Source repository.
Go to file
Maxim Dounin 41d8ea8c8d Fixed handling of unix sockets in $binary_remote_addr.
Previously, unix sockets were treated as AF_INET ones, and this may
result in buffer overread on Linux, where unbound unix sockets have
2-byte addresses.

Note that it is not correct to use just sun_path as a binary representation
for unix sockets.  This will result in an empty string for unbound unix
sockets, and thus behaviour of limit_req and limit_conn will change when
switching from $remote_addr to $binary_remote_addr.  As such, normal text
representation is used.

Reported by Stephan Dollberg.
2017-10-04 21:19:42 +03:00
auto Mirror module. 2017-07-20 08:50:49 +03:00
conf MIME: added most common OpenDocument types. 2017-10-02 19:07:01 +03:00
contrib Contrib: proper syntax parsing in vim syntax highlighting. 2017-05-22 16:34:47 +03:00
docs Trailing space removed. 2017-09-11 16:41:39 +03:00
misc Updated PCRE used for win32 builds. 2017-08-08 15:21:10 +03:00
src Fixed handling of unix sockets in $binary_remote_addr. 2017-10-04 21:19:42 +03:00
.hgtags release-1.13.5 tag 2017-09-05 17:59:31 +03:00