]> Sergey Matveev's repositories - btrtrc.git/commit
Check for chunks overflowing piece bounds on request read
authorMatt Joiner <anacrolix@gmail.com>
Mon, 13 Feb 2023 12:27:15 +0000 (23:27 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 13 Feb 2023 12:27:15 +0000 (23:27 +1100)
commitabb5cbc96e301a4ca1f5df698b105ae8553ce1e9
tree8576586892893e85b7557ca58b2f46b7dd2a7679
parent60fd7581e774c14a4d370b90672012b58a2739f4
Check for chunks overflowing piece bounds on request read

Test for integer overflow in when checking read requests are within the bounds of the associated piece. Another fix is required to limit the amount of memory that can be allocated for such requests.
peer_protocol/int.go
peerconn.go
peerconn_test.go