wolfstudy opened a new pull request #709:
URL: https://github.com/apache/pulsar-client-go/pull/709


   Signed-off-by: xiaolongran <[email protected]>
   
   Fixes #702
   
   ### Motivation
   
   
   As #702 desc, In some scenarios, when the `Read(size uint32) []byte` 
interface in **Buffer** is called, the panic of a slice out of bounds may 
occur. So in this pr, the judgment of boundary conditions is added. When the 
slice is out of bounds, a `CommandAck_BatchDeSerializeError` error will be sent 
to the Broker to avoid the Go SDK process being down due to the panic.
   
   ### Modifications
   
   - Add logic to check slice boundaries for `Read()` of Buffer
   
   


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