atomashpolskiy / bt

BitTorrent library and client with DHT, magnet links, encryption and more
https://atomashpolskiy.github.io/bt/
Apache License 2.0
2.42k stars 381 forks source link

bugfix: incoming plaintext bombs if MSE Enabled #198

Closed pyckle closed 3 years ago

pyckle commented 3 years ago

Connection fails with: Reason: java.lang.IllegalArgumentException (Illegal buffer params (position: 68, limit: 68, capacity: 1048576)

codecov-commenter commented 3 years ago

Codecov Report

Merging #198 (a41f1fc) into master (7dcb93b) will increase coverage by 0.17%. The diff coverage is 14.28%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #198      +/-   ##
============================================
+ Coverage     65.72%   65.89%   +0.17%     
- Complexity     2378     2389      +11     
============================================
  Files           309      309              
  Lines         10339    10340       +1     
  Branches       1144     1145       +1     
============================================
+ Hits           6795     6814      +19     
+ Misses         2871     2855      -16     
+ Partials        673      671       -2     
Impacted Files Coverage Δ
...re/src/main/java/bt/net/PeerConnectionFactory.java 76.85% <0.00%> (-1.46%) :arrow_down:
.../java/bt/net/pipeline/InboundMessageProcessor.java 77.82% <0.00%> (+0.33%) :arrow_up:
...n/java/bt/net/pipeline/DefaultChannelPipeline.java 85.71% <100.00%> (ø)
bt-core/src/main/java/bt/protocol/Bitfield.java 83.33% <0.00%> (-16.67%) :arrow_down:
...magnet/InitializeMagnetTorrentProcessingStage.java 68.75% <0.00%> (-12.50%) :arrow_down:
.../main/java/bt/torrent/BitfieldBasedStatistics.java 81.48% <0.00%> (-3.71%) :arrow_down:
...ore/src/main/java/bt/torrent/messaging/Choker.java 62.96% <0.00%> (-3.71%) :arrow_down:
bt-core/src/main/java/bt/runtime/BtRuntime.java 70.37% <0.00%> (-2.78%) :arrow_down:
...t-core/src/main/java/bt/net/MessageDispatcher.java 79.08% <0.00%> (-1.97%) :arrow_down:
...in/java/bt/torrent/messaging/MetadataConsumer.java 64.10% <0.00%> (-1.29%) :arrow_down:
... and 14 more