forked from I2P_Developers/i2p.i2p
Fortuna: Catch AIOOBE (ticket #1576)
This commit is contained in:
@ -262,9 +262,15 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
|
||||
/** reseed the fortuna */
|
||||
@Override
|
||||
public void feedEntropy(String source, byte[] data, int offset, int len) {
|
||||
try {
|
||||
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
|
||||
* i2ptunnel: Fix +/- variance config (ticket #1587)
|
||||
|
||||
|
@ -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 = 33;
|
||||
public final static long BUILD = 34;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
|
Reference in New Issue
Block a user