forked from I2P_Developers/i2p.i2p
SSU2: Fix bitfield shifts of 256 or more
This commit is contained in:
16
history.txt
16
history.txt
@ -1,3 +1,19 @@
|
||||
2022-07-25 zzz
|
||||
* SSU2: Fix bitfield shifts of 256 or more
|
||||
|
||||
2022-07-21 zzz
|
||||
* Console: Fix saving flat clients.config file
|
||||
|
||||
2022-07-19 zzz
|
||||
* GeoIP: Don't lookup route48 addresses
|
||||
* SSU:
|
||||
- Reduce max establishment time
|
||||
- Retransmit handshake messages faster and expire faster (SSU 1/2)
|
||||
* SSU2:
|
||||
- Shorten token expiration based on cache size
|
||||
- Retransmit session confirmed after receiving apparent retransmitted session created
|
||||
- Fix storage/checking of local firewalled IP address/port in token file
|
||||
|
||||
2022-07-17 zzz
|
||||
* SSU2:
|
||||
- More MTU fixes
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Git";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 12;
|
||||
public final static long BUILD = 13;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@ -80,7 +80,7 @@ class SSU2Bitfield {
|
||||
shift = min_shift;
|
||||
// round up
|
||||
if ((shift & 0x3f) != 0)
|
||||
shift = 64 + (shift & 0xc0);
|
||||
shift = 64 + (shift & 0x7fffffc0);
|
||||
//System.out.println("Shifting bitfield, offset was " + offset + ", now " + (offset + shift));
|
||||
if (shift < size) {
|
||||
// shift down
|
||||
|
Reference in New Issue
Block a user