-11, catch rare AIOOB
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-03-27 zzz
|
||||||
|
* Add readme_fr.html
|
||||||
|
* License splash update
|
||||||
|
* Catch rare TunnelGatewayMessage AIOOB, root cause unknown
|
||||||
|
|
||||||
2009-03-24 zzz
|
2009-03-24 zzz
|
||||||
* I2PTunnel:
|
* I2PTunnel:
|
||||||
- Add some warnings about new features
|
- Add some warnings about new features
|
||||||
|
@ -75,6 +75,11 @@ public class TunnelGatewayMessage extends I2NPMessageImpl {
|
|||||||
}
|
}
|
||||||
DataHelper.toLong(out, curIndex, 2, _msgData.length);
|
DataHelper.toLong(out, curIndex, 2, _msgData.length);
|
||||||
curIndex += 2;
|
curIndex += 2;
|
||||||
|
// where is this coming from?
|
||||||
|
if (curIndex + _msgData.length > out.length) {
|
||||||
|
_log.log(Log.ERROR, "output buffer too small idx: " + curIndex + " len: " + _msgData.length + " outlen: " + out.length);
|
||||||
|
throw new I2NPMessageException("Too much data to write out (id=" + _tunnelId + " data=" + _msg + ")");
|
||||||
|
}
|
||||||
System.arraycopy(_msgData, 0, out, curIndex, _msgData.length);
|
System.arraycopy(_msgData, 0, out, curIndex, _msgData.length);
|
||||||
curIndex += _msgData.length;
|
curIndex += _msgData.length;
|
||||||
return curIndex;
|
return curIndex;
|
||||||
|
@ -17,7 +17,7 @@ import net.i2p.CoreVersion;
|
|||||||
public class RouterVersion {
|
public class RouterVersion {
|
||||||
public final static String ID = "$Revision: 1.548 $ $Date: 2008-06-07 23:00:00 $";
|
public final static String ID = "$Revision: 1.548 $ $Date: 2008-06-07 23:00:00 $";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 10;
|
public final static long BUILD = 11;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
Reference in New Issue
Block a user