nginx/src
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
..
core Fixed handling of non-null-terminated unix sockets. 2017-10-04 21:19:38 +03:00
event Fixed buffer overread with unix sockets after accept(). 2017-10-04 21:19:33 +03:00
http Fixed handling of unix sockets in $binary_remote_addr. 2017-10-04 21:19:42 +03:00
mail Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00
misc Style: aligned ngx_null_command. 2017-07-12 11:34:04 +03:00
os Removed more remnants of the old pthread implementation. 2017-09-18 11:09:41 +03:00
stream Fixed handling of unix sockets in $binary_remote_addr. 2017-10-04 21:19:42 +03:00