curl-curl/tests/data/test2605
Daniel Stenberg c545e10fa7
sftp: fix range downloads in both SSH backends
When asking for the last N bytes of a file, and that size was larger
than the file size, it would miss the first byte due to a logic error.

The fixed range parser is now made a common function in the file now
renamed to vssh.c (from curl_path.c) - used by both backends.

Unit test 2605 verifies the parser.

Reported-by: Stanislav Fort (Aisle Research)
Closes #19460
2025-11-11 14:51:22 +01:00

21 lines
188 B
Plaintext

<testcase>
<info>
<keywords>
unittest
sftp
</keywords>
</info>
#
# Client-side
<client>
<features>
unittest
sftp
</features>
<name>
Curl_ssh_range unit test
</name>
</client>
</testcase>