From ac9a179fe980f1a78438a791671e22671ebb6451 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Jun 2018 16:28:59 +0200 Subject: multi: fix memory leak when stopped during name resolve When the application just started the transfer and then stops it while the name resolve in the background thread hasn't completed, we need to wait for the resolve to complete and then cleanup data accordingly. Enabled test 1553 again and added test 1590 to also check when the host name resolves successfully. Detected by OSS-fuzz. Closes #1968 --- tests/data/test1590 | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tests/data/test1590 (limited to 'tests/data/test1590') diff --git a/tests/data/test1590 b/tests/data/test1590 new file mode 100644 index 000000000..b605022af --- /dev/null +++ b/tests/data/test1590 @@ -0,0 +1,54 @@ + + + +IMAP +Clear Text +FETCH + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + + + + + +# +# Client-side + + +imap + + +IMAP cleanup before a connection was created + +# tool is what to use instead of 'curl' + +lib1553 + + +# it is important this uses a host name that resolves successfully + +imap://localhost:%IMAPPORT/1590 + + + +# +# Verify data after the test has been "shot" + + + + + -- cgit v1.2.3