-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes in libssh2_userauth_keyboard_interactive_ex()
These crashes occurred due to alignment issues between LabVIEW and libssh2_extensions. Fixed by addressing the alignment issues on the LabVIEW side: - `prompts` changed from U32 to U64 (pointer-sized integer) - padding added for `echo` so that the structure is correctly aligned. To address a heap corruption issue in LabVIEW, the implementation for the handler function was changed so that the `responses` handle is also provided to the callback function. The corresponding helper function `lvssh2_userauth_keyboard_interactive_add_response` was changed to use the provided `responses` handle and `index` to add the response. This was previously done with global variables that are no longer necessary. Side note: There is another issue related to heap corruption that isn't resolved by this commit. It does, however, not result in a crash and will be addressed in a future commit.
- Loading branch information
1 parent
718998a
commit 8256cd4
Showing
9 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+884 Bytes
(100%)
libssh2/lvssh2_userauth_keyboard_interactive_response_function_handler_32.vi
Binary file not shown.
Binary file modified
BIN
+532 Bytes
(100%)
libssh2/lvssh2_userauth_keyboard_interactive_response_function_handler_64.vi
Binary file not shown.
Binary file modified
BIN
+104 Bytes
(100%)
libssh2/lvssh2_userauth_keyboard_interactive_response_function_input_args_32.ctl
Binary file not shown.
Binary file modified
BIN
+120 Bytes
(100%)
libssh2/lvssh2_userauth_keyboard_interactive_response_function_input_args_64.ctl
Binary file not shown.