- Oops, must enforce property length limits even when inside router JVM
     as the properties are serialized for signing.
This commit is contained in:
zzz
2013-07-21 20:17:42 +00:00
parent 7133736702
commit a7485ab5a3
2 changed files with 4 additions and 4 deletions

View File

@@ -309,10 +309,10 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
continue;
}
String val = options.getProperty(key);
// not serializing (no limit) in router ctx
// Long strings MUST be removed, even in router context,
// as the session config properties must be serialized to be signed.
// fixme, bytes could still be over 255 (unlikely)
if ((!_context.isRouterContext()) &&
(key.length() > 255 || val.length() > 255)) {
if (key.length() > 255 || val.length() > 255) {
if (_log.shouldLog(Log.WARN))
_log.warn("Not passing on property ["
+ key

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 7;
public final static long BUILD = 8;
/** for example "-test" */
public final static String EXTRA = "";