Closed wangmm0220 closed 1 month ago
In the branch of develop.
(slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen > bufferlen)) should be (slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen + SLHEADSIZE > bufferlen))
otherwise sendptr will be bigger than recptr send:1560, rec:1556
Thanks @wangmm0220. That should be protected against.
Out of curiosity, have you see this scenario occur? If so, what were the circumstances? Thanks.
This should be fixed in the new major release.
In the branch of develop.
(slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen > bufferlen)) should be (slconn->stat->slpack.reclen > 0 && slconn->stat->slpack.reclen + SLHEADSIZE > bufferlen))
otherwise sendptr will be bigger than recptr send:1560, rec:1556