Skip to content

Commit 3a9a14c

Browse files
committed
PDFBOX-5954: fix comparison
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924293 13f79535-47bb-0310-9956-ffa450edef68
1 parent da91bf0 commit 3a9a14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdfparser/COSParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ private boolean validateStreamLength(long streamLength) throws IOException
893893
LOG.debug("Suspicious stream length 0, start position: {}", originOffset);
894894
return false;
895895
}
896-
else if (streamLength <= 0)
896+
else if (streamLength < 0)
897897
{
898898
LOG.warn("Invalid stream length: {}, start position: {}", streamLength, originOffset);
899899
return false;

0 commit comments

Comments
 (0)