mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
* I2CP:
- Oops, must enforce property length limits even when inside router JVM
as the properties are serialized for signing.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user