You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "fresh-borzoni (via GitHub)" <gi...@apache.org> on 2026/07/23 18:09:32 UTC

[I] [rpc] RPC decoder allocates before validating field length [fluss]

fresh-borzoni opened a new issue, #3757:
URL: https://github.com/apache/fluss/issues/3757

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
   
   
   ### Description
   
   The generated protobuf field decoders read a length-delimited field's length prefix and allocate for it before checking that many bytes are actually present. 
   
   So a small request with a large length prefix makes the server allocate a big array on the Netty event-loop
   thread before it reads.
   
   ### Willingness to contribute
   
   - [x] I'm willing to submit a PR!


-- 
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: issues-unsubscribe@fluss.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [rpc] RPC decoder allocates before validating field length [fluss]

Posted by "wuchong (via GitHub)" <gi...@apache.org>.
wuchong closed issue #3757: [rpc] RPC decoder allocates before validating field length
URL: https://github.com/apache/fluss/issues/3757


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org