-
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.
extensions: Add assertions to assert the maximum length of LStrHandle
LStrHandle is limited to a size of INT32_MAX, while libssh2 can handle size_t. Since LabVIEW is unable to handle data of this size, we need to truncate the length to what LabVIEW can handle. Note that this can result in undefined behavior as the truncated data is incomplete. While it is very unlikely that anyone will ever reach the limits, the possibility is there. A possible workaround is to split the data into portions that LabVIEW can handle and post them individually. However, this makes the code much more complex with unlikely usecases.
- Loading branch information
1 parent
42de2a5
commit 38210f0
Showing
2 changed files
with
27 additions
and
8 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