curl/lib/vssh
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
..
libssh.c sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00
libssh2.c sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00
ssh.h sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00
vssh.c sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00
vssh.h sftp: fix range downloads in both SSH backends 2025-11-11 14:51:22 +01:00