mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
1890d59905
If a % ended the statement, the string's trailing NUL would be skipped and memory past the end of the buffer would be accessed and potentially displayed as part of the --write-out output. Added tests 1440 and 1441 to check for this kind of condition. Reported-by: Brian Carpenter
32 lines
347 B
Plaintext
32 lines
347 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
--write-out
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
file
|
|
</server>
|
|
|
|
<name>
|
|
Check --write-out with trailing %
|
|
</name>
|
|
<command>
|
|
file://localhost/%PWD/log/ --write-out '%'
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data
|
|
<verify>
|
|
<stdout nonewline="yes">
|
|
%
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|