mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:07:16 +03:00
curl: fix memory leak when -h is used in config file
Reported-by: antypanty on hackerone Add test 748 to reproduce and verify fix Closes #17306
This commit is contained in:
parent
cd7904f5a9
commit
13032ff75c
7 changed files with 43 additions and 14 deletions
|
|
@ -107,7 +107,7 @@ test709 test710 test711 test712 test713 test714 test715 test716 test717 \
|
|||
test718 test719 test720 test721 test722 test723 test724 test725 test726 \
|
||||
test727 test728 test729 test730 test731 test732 test733 test734 test735 \
|
||||
test736 test737 test738 test739 test740 test741 test742 test743 test744 \
|
||||
test745 test746 test747 \
|
||||
test745 test746 test747 test748 \
|
||||
\
|
||||
test780 test781 test782 test783 test784 test785 test786 test787 test788 \
|
||||
test789 test790 test791 \
|
||||
|
|
|
|||
36
tests/data/test748
Normal file
36
tests/data/test748
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
--config
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
A --config file that uses -h and no URL
|
||||
</name>
|
||||
<file name="%LOGDIR/cmd">
|
||||
-h all
|
||||
</file>
|
||||
<command>
|
||||
-K %LOGDIR/cmd
|
||||
</command>
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<errorcode>
|
||||
2
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue