You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2018/04/16 18:05:33 UTC
[tika] 02/02: fix readUE7
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 9610149ae9eeadbaf2f30c1a2a650d4566f966b5
Author: tballison <ta...@mitre.org>
AuthorDate: Mon Apr 16 14:05:20 2018 -0400
fix readUE7
---
tika-core/src/main/java/org/apache/tika/io/EndianUtils.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tika-core/src/main/java/org/apache/tika/io/EndianUtils.java b/tika-core/src/main/java/org/apache/tika/io/EndianUtils.java
index 9f8aca3..96ba1ae 100644
--- a/tika-core/src/main/java/org/apache/tika/io/EndianUtils.java
+++ b/tika-core/src/main/java/org/apache/tika/io/EndianUtils.java
@@ -230,6 +230,9 @@ public class EndianUtils {
break;
}
}
+ if (i < 0) {
+ throw new IOException("Buffer underun; expected one more byte");
+ }
return v;
}
--
To stop receiving notification emails like this one, please contact
tallison@apache.org.