mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:33:31 +03:00
tool_operate: more transfer cleanup after parallel transfer fail
In some circumstances when doing parallel transfers, the single_transfer_cleanup() would not be called and then 'inglob' could leak. Test 496 verifies Reported-by: Trail of Bits Closes #9749
This commit is contained in:
parent
3ccaddc9fc
commit
ec977b050d
5 changed files with 60 additions and 21 deletions
36
tests/data/test496
Normal file
36
tests/data/test496
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
curl tool
|
||||
cmdline
|
||||
parallel
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
parallel upload missing file
|
||||
</name>
|
||||
<command>
|
||||
0 -Z -Tz
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
26
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue