curl-curl/tests/data/test2080
Daniel Stenberg 9e198618de
tool_parsecfg: detect and error on recursive --config use
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
2025-10-21 10:11:43 +02:00

37 lines
473 B
Plaintext

<testcase>
<info>
<keywords>
FILE
config
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<name>
config file with overly long option
</name>
<command>
-K %LOGDIR/config%TESTNUMBER file://de\>v/null
</command>
<file name="%LOGDIR/config%TESTNUMBER">
%repeat[20000 x D]%
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
# the used option in the config file is too long
<errorcode>
2
</errorcode>
</verify>
</testcase>