Skip to content

libssh2: set length to 0 if strdup failed - #13213

Closed
stoeckmann wants to merge 1 commit into
curl:masterfrom
stoeckmann:malloc
Closed

libssh2: set length to 0 if strdup failed#13213
stoeckmann wants to merge 1 commit into
curl:masterfrom
stoeckmann:malloc

Conversation

@stoeckmann

Copy link
Copy Markdown
Contributor

Internally, libssh2 would dereference the NULL pointer if length is non-zero. The callback function cannot return the error condition, so at least prevent subsequent crash.

Internally, libssh2 would dereference the NULL pointer if length is
non-zero. The callback function cannot return the error condition,
so at least prevent subsequent crash.
@bagder bagder closed this in 6f32048 Mar 28, 2024
@bagder

bagder commented Mar 28, 2024

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants