ALT Linux Bugzilla
– Attachment 16996 Details for
Bug 51645
Segfault при запуске функции ssh2_auth_pubkey_file
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправление Segmentation fault
ssh2_fix_nullpointer_deref.patch (text/plain), 917 bytes, created by
krasovskiyai
on 2024-10-10 15:33:07 MSK
(
hide
)
Description:
Исправление Segmentation fault
Filename:
MIME Type:
Creator:
krasovskiyai
Created:
2024-10-10 15:33:07 MSK
Size:
917 bytes
patch
obsolete
>diff --git a/ssh2/ssh2.c b/ssh2/ssh2.c >index cfa8fb8..7752183 100644 >--- a/ssh2/ssh2.c >+++ b/ssh2/ssh2.c >@@ -653,7 +653,7 @@ PHP_FUNCTION(ssh2_auth_pubkey_file) > { > LIBSSH2_SESSION *session; > zval *zsession; >- zend_string *username, *pubkey, *privkey, *passphrase; >+ zend_string *username, *pubkey, *privkey, *passphrase = NULL; > #ifndef PHP_WIN32 > zend_string *newpath; > struct passwd *pws; >@@ -689,7 +689,7 @@ PHP_FUNCTION(ssh2_auth_pubkey_file) > #endif > > /* TODO: Support passphrase callback */ >- if (libssh2_userauth_publickey_fromfile_ex(session, ZSTR_VAL(username), ZSTR_LEN(username), ZSTR_VAL(pubkey), ZSTR_VAL(privkey), ZSTR_VAL(passphrase))) { >+ if (libssh2_userauth_publickey_fromfile_ex(session, ZSTR_VAL(username), ZSTR_LEN(username), ZSTR_VAL(pubkey), ZSTR_VAL(privkey), passphrase ? ZSTR_VAL(passphrase) : NULL)) { > char *buf; > int len; > libssh2_session_last_error(session, &buf, &len, 0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51645
:
16959
| 16996