mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 17:23:13 +00:00
Fortuna: Catch AIOOBE (ticket #1576)
This commit is contained in:
1 parent
c58fd8f84e
commit
4521156ecb
3 files changed
+12
-3
No files matched your search
@@ -262,8 +262,14 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
|
||||
/** reseed the fortuna */
|
||||
@Override
|
||||
public void feedEntropy(String source, byte[] data, int offset, int len) {
|
||||
synchronized(_fortuna) {
|
||||
_fortuna.addRandomBytes(data, offset, 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user