RapperCL opened a new issue, #5424:
URL: https://github.com/apache/rocketmq/issues/5424

   Null exception and array overflow bug exist in getHalfMsg method
   
path:org.apache.rocketmq.broker.transaction.queue.TransactionalMessageServiceImpl
   
![image](https://user-images.githubusercontent.com/44110731/198861853-317b52d3-bb7b-44e6-a65d-410e203be1e7.png)
   
   Null Exception:
   the pullHalfMsg method will return null;
   result.getMsgFoundList method will result in null exception;
   for example: pullHalfMsg->getHalfMessage->getMessage
   
![image](https://user-images.githubusercontent.com/44110731/198861860-d17bf43a-0f1d-4d6e-b6d3-f568709ca084.png)
   
   
   Array overflow:
   result.getMsgFoundList() has two cases: null and size=0. 
   When size = 0, getResult.setMsg(messageExts.get(0)) will cause the array to 
overflow
   pullHalfMsg->getHalfMessage->getMessage
   
![image](https://user-images.githubusercontent.com/44110731/198861880-e0cdf86b-8323-4b7e-b05c-aa209fab5924.png)
   
   
   
   


-- 
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]

Reply via email to