New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bugs in BytesMut::reserve_inner
#544
Conversation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Would you be able to add a test case for this? |
Sure. I should be able to using split_off |
offset
in BytesMut::reserve_inner
BytesMut::reserve_inner
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
The miri failed with leaking in the newly added test, however I cannot locate the problem. |
You're using |
Oh right, thank you for reminding me that! |
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
I have verified that the test fails without your change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I will merge this once CI passes.
Fixed bugs introduced in #529 ,
BytesMut::reserve_inner
:Signed-off-by: Jiahao XU Jiahao_XU@outlook.com