You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/13 11:54:31 UTC
[GitHub] [pulsar-client-go] wolfstudy opened a new pull request #709: Fix slice bounds out of range for readSingleMessage
wolfstudy opened a new pull request #709:
URL: https://github.com/apache/pulsar-client-go/pull/709
Signed-off-by: xiaolongran <xi...@tencent.com>
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-go] zymap merged pull request #709: Fix slice bounds out of range for readSingleMessage
Posted by GitBox <gi...@apache.org>.
zymap merged pull request #709:
URL: https://github.com/apache/pulsar-client-go/pull/709
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org