]> git.ipfire.org Git - thirdparty/curl.git/commit
libssh2: error check and null-terminate in ssh_state_sftp_readdir_link()
authorViktor Szakats <commit@vsz.me>
Thu, 18 Sep 2025 12:02:51 +0000 (14:02 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 18 Sep 2025 20:01:27 +0000 (22:01 +0200)
commit9f18cb6544bbf47e2e2fad6564bc03098273c7bc
tree2f53d981cde39d93de19176735d85df260dbfd91
parentcec6c1cd9c3923e2b583ba2f0756a733ad25293e
libssh2: error check and null-terminate in ssh_state_sftp_readdir_link()

- null-terminate the result to match the other getter
  `libssh2_sftp_symlink_ex()` call.

- check negative result and bail out early.

Reported-by: Joshua Rogers
Closes #18598
lib/vssh/libssh2.c