SSU2: Fix bitfield shifts of 256 or more

This commit is contained in:
zzz
2022-07-25 13:17:56 -04:00
parent 69adf84363
commit 17695915fa
3 changed files with 18 additions and 2 deletions

View File

@ -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

View File

@ -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 = "";

View File

@ -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