mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Stream: fixed possible integer overflow in rate limiting.
This commit is contained in:
parent
035732696d
commit
cd17f869cf
@ -1062,7 +1062,7 @@ ngx_stream_proxy_process(ngx_stream_session_t *s, ngx_uint_t from_upstream,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > (size_t) limit) {
|
if ((off_t) size > limit) {
|
||||||
size = (size_t) limit;
|
size = (size_t) limit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user