# HG changeset patch # User Valentin Bartenev # Date 1435846829 -10800 # Node ID 114d1f8cdcabe5c7552b518c4d7ac0a7e98930c1 # Parent fdfdcad628757460c708e052293f4f51f799b11e Stream: fixed possible integer overflow in rate limiting. 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 @@ break; } - if (size > (size_t) limit) { + if ((off_t) size > limit) { size = (size_t) limit; } }