manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1444517 - /manifoldcf/branches/CONNECTORS-633/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
Date Sun, 10 Feb 2013 09:15:01 GMT
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));
   }



Mime
View raw message