Skip to content

libssh2: drop two redundant null-terminations#18606

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:libssh2-dropnullterm
Closed

libssh2: drop two redundant null-terminations#18606
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:libssh2-dropnullterm

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Sep 18, 2025

The null-termination was first added in the initial SFTP commit in 2006:
a634f64

At that time this was a reasonable concern because libssh2 started
null-terminating this string just one year prior, in 2005:
libssh2/libssh2@efc3841

This fix was released in libssh2 v0.13 (2006-03-02).

curl requires libssh2 v1.2.8, making this workaround no longer necessary.

Follow-up to 9f18cb6 #18598

One of these was added in the initial SFTP commit in 2006:
a634f64

At that time this was a reasonable concern because libssh2 started
null-terminating this string just one year prior:
libssh2/libssh2@efc3841

This fix was released in libssh2 v0.13.

curl requires libssh v1.2.8, making this workaround no longer necessary.

Follow-up to 9f18cb6 curl#18598
@vszakats vszakats closed this in 0d9a07a Sep 19, 2025
@vszakats vszakats deleted the libssh2-dropnullterm branch September 19, 2025 07:47
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