Off-by-one error causes protocol corruption
Chickenzilla opened this issue · comments
https://github.com/apache/pulsar-dotpulsar/blob/master/src/DotPulsar/Internal/Extensions/ReadOnlySequenceExtensions.cs#L91 can cause some sequences to be only partially read, returning incorrect length values and causing protobuf errors. I have implemented a fix in our fork along with enhanced unit tests that show the issue at mParticle@f13e312.
Hi @Chickenzilla
Thanks, I'll look into it! :-)
Hi @Chickenzilla
Looking good and great work with the tests! :-)
Wanna create a PR for the changes to ReadOnlySequenceExtensions and ReadOnlySequenceExtensionsTests or should I just go ahead with a copy/paste?
Please handle it yourself (feel free to take any/all code from my PR as desired). I've moved onto a different bug and won't have time to come back to this for at least a few days.
I have just released 1.0.2 that fixes this.