From 9d04c52a0c2bcd130d80ac3de58a4634bd9df3ed Mon Sep 17 00:00:00 2001 From: millmanorama Date: Thu, 26 Jan 2017 17:39:54 +0100 Subject: [PATCH] lower chunk size limit slightly to prevent reading too much --- .../src/org/sleuthkit/autopsy/keywordsearch/Chunker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Chunker.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Chunker.java index 3386472d03..d2967ce400 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Chunker.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/Chunker.java @@ -40,7 +40,7 @@ class Chunker implements Iterator, Iterable { //Chunking algorithm paramaters-------------------------------------// /** the maximum size of a chunk, including the window. */ - private static final int MAX_TOTAL_CHUNK_SIZE = 32766; //bytes + private static final int MAX_TOTAL_CHUNK_SIZE = 32760; //bytes /** the minimum to read before we start the process of looking for * whitespace to break at and creating an overlapping window. */ private static final int MINIMUM_BASE_CHUNK_SIZE = 30 * 1024; //bytes