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 <talli...@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
talli...@apache.org.

Reply via email to