Skip to content

sftp: fix range downloads in both SSH backends#19460

Closed
bagder wants to merge 9 commits into
masterfrom
bagder/sftp-range
Closed

sftp: fix range downloads in both SSH backends#19460
bagder wants to merge 9 commits into
masterfrom
bagder/sftp-range

Conversation

@bagder

@bagder bagder commented Nov 11, 2025

Copy link
Copy Markdown
Member

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.

Reported-by: Stanislav Fort (Aisle Research)

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.

Reported-by: Stanislav Fort (Aisle Research)
@github-actions github-actions Bot added the tests label Nov 11, 2025
@testclutch

This comment was marked as resolved.

@bagder
bagder marked this pull request as ready for review November 11, 2025 12:50
@bagder bagder closed this in c545e10 Nov 11, 2025
@bagder
bagder deleted the bagder/sftp-range branch November 11, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants