From 7f1140c8bfc47dd9b7a8010818e97e87a289bfaf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Oct 2017 01:11:17 +0200 Subject: multi_cleanup: call DONE on handles that never got that ... fixes a memory leak with at least IMAP when remove_handle is never called and the transfer is abruptly just abandoned early. Test 1552 added to verify Detected by OSS-fuzz Assisted-by: Max Dymond Closes #1954 --- tests/data/Makefile.inc | 2 +- tests/data/test1552 | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1552 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 4243c2183..e431d46c1 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -169,7 +169,7 @@ test1520 test1521 \ test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \ test1533 test1534 test1535 test1536 test1537 test1538 \ test1540 \ -test1550 test1551 \ +test1550 test1551 test1552 \ test1600 test1601 test1602 test1603 test1604 test1605 test1606 \ \ test1700 test1701 test1702 \ diff --git a/tests/data/test1552 b/tests/data/test1552 new file mode 100644 index 000000000..c5b1b5728 --- /dev/null +++ b/tests/data/test1552 @@ -0,0 +1,52 @@ + + + +IMAP +Clear Text +FETCH + + + +# +# Server-side + + +From: me@somewhere +To: fake@nowhere + +body + +-- + yours sincerely + + + + + + + +# +# Client-side + + +imap + + +IMAP multi transfer error without curl_multi_remove_handle + +# tool is what to use instead of 'curl' + +lib1552 + + +'imap://%HOSTIP:%IMAPPORT/1552/;UID=1' + + + +# +# Verify data after the test has been "shot" + + + + + -- cgit v1.2.3