mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'tor-github/pr/1394'
This commit is contained in:
@@ -68,9 +68,9 @@ buf_read_from_tls(buf_t *buf, tor_tls_t *tls, size_t at_most)
|
||||
|
||||
check_no_tls_errors();
|
||||
|
||||
if (BUG(buf->datalen >= INT_MAX))
|
||||
IF_BUG_ONCE(buf->datalen >= INT_MAX)
|
||||
return -1;
|
||||
if (BUG(buf->datalen >= INT_MAX - at_most))
|
||||
IF_BUG_ONCE(buf->datalen >= INT_MAX - at_most)
|
||||
return -1;
|
||||
|
||||
while (at_most > total_read) {
|
||||
|
||||
Reference in New Issue
Block a user