details: http://hg.nginx.org/nginx/rev/114d1f8cdcab branches: changeset: 6204:114d1f8cdcab user: Valentin Bartenev <vb...@nginx.com> date: Thu Jul 02 17:20:29 2015 +0300 description: Stream: fixed possible integer overflow in rate limiting.
diffstat: src/stream/ngx_stream_proxy_module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r fdfdcad62875 -r 114d1f8cdcab src/stream/ngx_stream_proxy_module.c --- a/src/stream/ngx_stream_proxy_module.c Thu Jul 02 17:15:32 2015 +0300 +++ b/src/stream/ngx_stream_proxy_module.c Thu Jul 02 17:20:29 2015 +0300 @@ -1062,7 +1062,7 @@ ngx_stream_proxy_process(ngx_stream_sess break; } - if (size > (size_t) limit) { + if ((off_t) size > limit) { size = (size_t) limit; } } _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel