Skip to content

pingpong: return error when trying to send without connection#1960

Closed
bagder wants to merge 3 commits intomasterfrom
bagder/imap-mime-sigsegv
Closed

pingpong: return error when trying to send without connection#1960
bagder wants to merge 3 commits intomasterfrom
bagder/imap-mime-sigsegv

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 6, 2017

When imap_done() got called before a connection is setup, it would try
to "finish up" and dereffed a NULL pointer.

Test case 1553 managed to reproduce. I had to actually use a host name
to try to resolve to slow it down, as using the normal local server IP
will make libcurl get a connection in the first curl_multi_perform()
loop and then the bug doesn't trigger.

Fixes #1953
Assisted-by: Max Dymond

When imap_done() got called before a connection is setup, it would try
to "finish up" and dereffed a NULL pointer.

Test case 1553 managed to reproduce. I had to actually use a host name
to try to resolve to slow it down, as using the normal local server IP
will make libcurl get a connection in the first curl_multi_perform()
loop and then the bug doesn't trigger.

Fixes #1953
Assisted-by: Max Dymond
@bagder
Copy link
Member Author

bagder commented Oct 7, 2017

Nasty valgrind errors there I need to fix before this can move.

@bagder bagder force-pushed the bagder/imap-mime-sigsegv branch from a9a6759 to f3e03f6 Compare October 7, 2017 15:56
@bagder bagder closed this in 1e55253 Oct 7, 2017
@bagder bagder deleted the bagder/imap-mime-sigsegv branch October 7, 2017 21:55
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Segfault in imap_done when calling curl_multi_remove_handle()

1 participant