Closed dahlgrenm closed 2 years ago
To resolve #134.
This PR ensures that the buffer for bt.torrent.messaging.ExchangedMetadata.getSha1Digest is not larger than needed by using instead the smaller of metadata.length() and DEFAULT_BUFFER_SIZE.
bt.torrent.messaging.ExchangedMetadata.getSha1Digest
metadata.length()
DEFAULT_BUFFER_SIZE
Thank you!
To resolve #134.
This PR ensures that the buffer for
bt.torrent.messaging.ExchangedMetadata.getSha1Digest
is not larger than needed by using instead the smaller ofmetadata.length()
andDEFAULT_BUFFER_SIZE
.