mirror of
https://github.com/curl/curl.git
synced 2026-04-12 00:11:42 +08:00
The config file parser now has a maximum level of inclusions allowed (5) to detect and prevent recursive inclusions of itself leading to badness. Bonus: clean up return code handling from the config parser. Test 774 verifies Closes #19168
26 lines
310 B
Plaintext
26 lines
310 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
--config
|
|
</keywords>
|
|
</info>
|
|
|
|
<client>
|
|
<name>
|
|
config file recursively including itself
|
|
</name>
|
|
<file name="%LOGDIR/cmd">
|
|
--config %LOGDIR/cmd
|
|
</file>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/ -K %LOGDIR/cmd
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<errorcode>
|
|
2
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|