RockteMQ-AI commented on issue #10776:
URL: https://github.com/apache/rocketmq/issues/10776#issuecomment-5163337167

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase on the 
`develop` branch.
   
   **Root Cause:** `Http2ProtocolProxyHandler.match(ByteBuf in)` calls 
`in.getInt(in.readerIndex())` without first checking `in.readableBytes() >= 4`. 
When the protocol detector receives a buffer with fewer than 4 readable bytes, 
Netty throws `IndexOutOfBoundsException` instead of returning `false` to wait 
for more data.
   
   **Impact:** Proxy remoting/gRPC ingress path — short or fragmented buffers 
can crash the protocol detection pipeline.
   
   **Severity:** medium
   
   A fix proposal can be generated. Reply with feedback if needed.
   
   ---
   *Automated evaluation by github-manager-bot*


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