Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for OOB Exception see http://forum.yacy-websuche.de/viewtopic.php?p=11598#p11598

orbiter8c3205b62ed5
diff --git a/source/de/anomic/kelondro/kelondroBLOBHeap.java b/source/de/anomic/kelondro/kelondroBLOBHeap.java
index b07c0050b..d82293da4 100755
--- a/source/de/anomic/kelondro/kelondroBLOBHeap.java
+++ b/source/de/anomic/kelondro/kelondroBLOBHeap.java
@@ -260,7 +260,8 @@ public final class kelondroBLOBHeap implements kelondroBLOB {
final int pos = (int) file.length();
int posFile = pos;
int posBuffer = 0;
- byte[] ba = new byte[this.buffersize + (4 + this.index.row().primaryKeyLength) * this.buffer.size()];
+
+ byte[] ba = new byte[l + (4 + this.index.row().primaryKeyLength) * this.buffer.size()];
Map.Entry<String, byte[]> entry;
byte[] key, blob, b;
while (i.hasNext()) {