You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/02/10 10:15:01 UTC
svn commit: r1444517 -
/manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
Author: kwright
Date: Sun Feb 10 09:15:01 2013
New Revision: 1444517
URL: http://svn.apache.org/r1444517
Log:
Fix infinite loop
Modified:
manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
Modified: manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java?rev=1444517&r1=1444516&r2=1444517&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java (original)
+++ manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java Sun Feb 10 09:15:01 2013
@@ -243,6 +243,7 @@ public class BOMEncodingDetector extends
while (len > 0)
{
replayBuffer.appendByte(buffer[offset++]);
+ len--;
}
return overflowByteReceiver.dealWithBytes(new PrefixedInputStream(replayBuffer,inputStream));
}