curl-curl/tests/data/test1548
Stefan Eissing 9657a2041e
curl: tool_read_cb fix of segfault
When transfers read client input without an upload file, the check if
upload file is '.' strcompared a NULL.

Add test 1548 to reproduce and verify fix.

Reported-by: d1r3ct0r
Fixes #17978
Closes #17987
2025-07-21 19:11:37 +02:00

44 lines
460 B
Plaintext

<testcase>
<info>
<keywords>
TELNET
</keywords>
</info>
#
# Server-side
<reply>
<data>
</data>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<features>
telnet
</features>
<name>
TELNET read stdin without upload file
</name>
<stdin>
GET /we/want/%TESTNUMBER HTTP/1.0
</stdin>
<command>
-m 1 telnet://%HOSTIP:%HTTPPORT
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
28
</errorcode>
</verify>
</testcase>