bug 62597 -- bump max record sizes up based on new failures in regression set. I typically bumped to 2x the max found in regression set.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tim Allison 2018-08-03 17:14:34 +00:00
parent cad6c1701f
commit c709b0c5d5
6 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ import org.apache.poi.util.IOUtils;
public final class CompressedStreamStore extends StreamStore {
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 1_000_000;
private static final int MAX_RECORD_LENGTH = 64_000_000;
/** The raw, compressed contents */
private byte[] compressedContents;

View File

@ -36,7 +36,7 @@ import org.apache.poi.util.LittleEndian;
public class ExOleObjStg extends PositionDependentRecordAtom implements PersistRecord {
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 1_000_000;
private static final int MAX_RECORD_LENGTH = 20_000_000;
private int _persistId; // Found from PersistPtrHolder

View File

@ -32,7 +32,7 @@ public final class SoundData extends RecordAtom {
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 10_485_760;
private static final int MAX_RECORD_LENGTH = 100_000_000;
/**
* Record header.

View File

@ -34,7 +34,7 @@ public final class UnknownRecordPlaceholder extends RecordAtom
{
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 1_000_000;
private static final int MAX_RECORD_LENGTH = 20_000_000;
private byte[] _contents;
private long _type;

View File

@ -66,7 +66,7 @@ public final class HSLFSlideShowImpl extends POIDocument implements Closeable {
public static final int UNSET_OFFSET = -1;
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 10_000_000;
private static final int MAX_RECORD_LENGTH = 200_000_000;
// For logging
private POILogger logger = POILogFactory.getLogger(this.getClass());

View File

@ -55,7 +55,7 @@ public class HWPFOldDocument extends HWPFDocumentCore {
.getLogger( HWPFOldDocument.class );
//arbitrarily selected; may need to increase
private static final int MAX_RECORD_LENGTH = 1_000_000;
private static final int MAX_RECORD_LENGTH = 10_000_000;
private final static Charset DEFAULT_CHARSET = StringUtil.WIN_1252;