jonathenzc commented on a change in pull request #11:
URL: https://github.com/apache/dubbo-hessian-lite/pull/11#discussion_r806565650



##########
File path: src/main/java/com/alibaba/com/caucho/hessian/io/Hessian2Input.java
##########
@@ -185,6 +184,19 @@ public Throwable getReplyFault() {
         return _replyFault;
     }
 
+    @Override
+    public boolean checkAndReadNull() {
+        try {
+            int tag = read();

Review comment:
       
这里的tag有可能返回-1,在_buffer[_offset++]中会出现ArrayIndexOutOfBoundsException的问题。可在下面offset--处做个保护




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to