Changeset a7485ab


Ignore:
Timestamp:
Jul 21, 2013 8:17:42 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
cc271de
Parents:
7133736
Message:
  • I2CP:
    • Oops, must enforce property length limits even when inside router JVM as the properties are serialized for signing.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/I2PSessionImpl.java

    r7133736 ra7485ab  
    310310            }
    311311            String val = options.getProperty(key);
    312             // not serializing (no limit) in router ctx
     312            // Long strings MUST be removed, even in router context,
     313            // as the session config properties must be serialized to be signed.
    313314            // fixme, bytes could still be over 255 (unlikely)
    314             if ((!_context.isRouterContext()) &&
    315                 (key.length() > 255 || val.length() > 255)) {
     315            if (key.length() > 255 || val.length() > 255) {
    316316                if (_log.shouldLog(Log.WARN))
    317317                    _log.warn("Not passing on property ["
  • router/java/src/net/i2p/router/RouterVersion.java

    r7133736 ra7485ab  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 7;
     21    public final static long BUILD = 8;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.