forked from I2P_Developers/i2p.i2p
Fortuna: Catch AIOOBE (ticket #1576)
This commit is contained in:
@ -262,8 +262,14 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
|
|||||||
/** reseed the fortuna */
|
/** reseed the fortuna */
|
||||||
@Override
|
@Override
|
||||||
public void feedEntropy(String source, byte[] data, int offset, int len) {
|
public void feedEntropy(String source, byte[] data, int offset, int len) {
|
||||||
synchronized(_fortuna) {
|
try {
|
||||||
_fortuna.addRandomBytes(data, offset, len);
|
synchronized(_fortuna) {
|
||||||
|
_fortuna.addRandomBytes(data, offset, len);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
// AIOOBE seen, root cause unknown, ticket #1576
|
||||||
|
Log log = _context.logManager().getLog(FortunaRandomSource.class);
|
||||||
|
log.warn("feedEntropy()", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
2015-05-31 zzz
|
||||||
|
* Fortuna: Catch AIOOBE (ticket #1576)
|
||||||
|
|
||||||
2015-05-30 zzz
|
2015-05-30 zzz
|
||||||
* i2ptunnel: Fix +/- variance config (ticket #1587)
|
* i2ptunnel: Fix +/- variance config (ticket #1587)
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 33;
|
public final static long BUILD = 34;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
Reference in New Issue
Block a user