Skip to content

Fix session present empty segv #862

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

Merged
merged 2 commits into from
Sep 10, 2021
Merged

Conversation

redboltz
Copy link
Owner

No description provided.

When CONNACK is received, and previous session exists but stored message
is empty, send_store_message() is called.
Due to empty stored message, the callback was called immediately.
It caused use heap after free error of coroutne.
I don't know the detail mechanisim but post the callback call sovled the
problem.
@redboltz redboltz force-pushed the fix_session_present_empty_segv branch from 323893c to 14601a9 Compare September 10, 2021 10:35
@codecov
Copy link

codecov bot commented Sep 10, 2021

Codecov Report

Merging #862 (14601a9) into master (7aadf3c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #862   +/-   ##
=======================================
  Coverage   83.51%   83.52%           
=======================================
  Files          62       62           
  Lines        9502     9506    +4     
=======================================
+ Hits         7936     7940    +4     
  Misses       1566     1566           

@redboltz redboltz merged commit 42deb67 into master Sep 10, 2021
@redboltz redboltz deleted the fix_session_present_empty_segv branch September 10, 2021 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant