Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
my first commit - hopefully fix for merge problem - http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2652
sixcooler089877f32c12
diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.javaindex d39221be0..974d6bada 100644--- a/source/net/yacy/kelondro/blob/HeapReader.java+++ b/source/net/yacy/kelondro/blob/HeapReader.java@@ -574,7 +574,12 @@ public class HeapReader {if (b == 0) {// this is empty// read some more bytes to consume the empty record- is.skip(len - 1); // all that is remaining+ if (len > 1) {+ if (len - 1 != is.skipBytes(len - 1)) { // all that is remaining+ Log.logWarning("HeapReader", "problem skiping " + + len + " bytes in " + this.blobFile.getName());+ return null;+ }+ }continue;}// we are now ahead of remaining this.keylen - 1 bytes of the key@@ -585,7 +590,7 @@ public class HeapReader {// there must be a remaining number of len - this.keylen bytes left for the BLOBif (len < this.keylen) return null; // a strange case that can only happen in case of corrupted dataif (is.available() < (len - this.keylen)) { // this really indicates corrupted data- Log.logWarning("HeapReader", "corrupted data by entry of " + len + " bytes");+ Log.logWarning("HeapReader", "corrupted data by entry of " + len + " bytes at available of: " + is.available() + " in " + this.blobFile.getName());return null;}payload = new byte[len - this.keylen]; // the remaining record entries