forked from I2P_Developers/i2p.i2p
disapproval of revision '8611baad56e8e18941721b156256783ba996a3cd'
Revert 8611baad56e8e18941721b156256783ba996a3cd Don't use intern() on externally-supplied strings as it could be used to exhaust memory
This commit is contained in:
@@ -215,8 +215,12 @@ public class RouterAddress extends DataStructureImpl {
|
||||
_cost = (int) DataHelper.readLong(in, 1);
|
||||
//_expiration = DataHelper.readDate(in);
|
||||
DataHelper.readDate(in);
|
||||
_transportStyle = DataHelper.readString(in);
|
||||
// reduce Object proliferation
|
||||
_transportStyle = DataHelper.readString(in).intern();
|
||||
if (_transportStyle.equals("SSU"))
|
||||
_transportStyle = "SSU";
|
||||
else if (_transportStyle.equals("NTCP"))
|
||||
_transportStyle = "NTCP";
|
||||
DataHelper.readProperties(in, _options);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user