diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-06-14 16:28:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-06-16 12:01:27 +0200 |
commit | ac9a179fe980f1a78438a791671e22671ebb6451 (patch) | |
tree | 4ac3b096f2d1ce523621175da41c0d41cfaf2525 /tests/data/test1590 | |
parent | 676f4b742df634afc862a8e2ee9bd717d7efd03d (diff) |
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
Diffstat (limited to 'tests/data/test1590')
-rw-r--r-- | tests/data/test1590 | 54 |
1 files changed, 54 insertions, 0 deletions
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 @@ +<testcase> +<info> +<keywords> +IMAP +Clear Text +FETCH +</keywords> +</info> + +# +# Server-side +<reply> +<data> +From: me@somewhere
+To: fake@nowhere
+
+body
+
+--
+ yours sincerely
+</data> +<datacheck> +</datacheck> +<servercmd> +</servercmd> +</reply> + +# +# Client-side +<client> +<server> +imap +</server> + <name> +IMAP cleanup before a connection was created + </name> +# tool is what to use instead of 'curl' +<tool> +lib1553 +</tool> + +# it is important this uses a host name that resolves successfully +<command> +imap://localhost:%IMAPPORT/1590 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +</protocol> +</verify> +</testcase> |