commit | 0b258e1d7864e5e966d353ae43474066835bb3fc | [log] [tgz] |
---|---|---|
author | Valentin Bartenev <vbart@nginx.com> | Thu Jul 02 17:20:29 2015 +0300 |
committer | Valentin Bartenev <vbart@nginx.com> | Thu Jul 02 17:20:29 2015 +0300 |
tree | 1138a8e304e294ed2ac4dadbe7d39649620c03cc | |
parent | 647fd089424fe3f4e01cf1453635a46983828e52 [diff] |
Stream: fixed possible integer overflow in rate limiting.
diff --git a/src/stream/ngx_stream_proxy_module.c b/src/stream/ngx_stream_proxy_module.c index 761e5f7..c25d6a1 100644 --- a/src/stream/ngx_stream_proxy_module.c +++ b/src/stream/ngx_stream_proxy_module.c
@@ -1062,7 +1062,7 @@ break; } - if (size > (size_t) limit) { + if ((off_t) size > limit) { size = (size_t) limit; } }