Hi,
In src/core/ngx_inet.c we have this code:
if (len > sizeof(saun->sun_path)) {
u->err = "too long path in the unix domain socket";
return NGX_ERROR;
}
But a NUL-terminated string requires one byte more. Is it allowed to
omit the NUL byte when the string would not fit otherwise? If not,
this should be changed to:
if (len >= sizeof(saun->sun_path)) {
u->err = "too long path in the unix domain socket";
return NGX_ERROR;
}
--
Kind regards,
Peter
https://lekensteyn.nl
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel