Fix SFTP data truncation by moving sentSzSave to state structure#785
Fix SFTP data truncation by moving sentSzSave to state structure#785JacobBarthelmeh merged 1 commit intomasterfrom
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Can one of the admins verify this patch? |
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
a0f2d7f to
502b5a6
Compare
|
(aside) For reviewer context:
This patch moves |
|
(aside) Ok to test . Kick off the Jenkins tests. |
Move sentSzSave variable to state structure in wolfSSH_SFTP_SendWritePacket
This PR makes the following changes:
sentSzSavevariable from being a local variable in thewolfSSH_SFTP_SendWritePacketfunction to being a member of theWS_SFTP_SEND_WRITE_STATEstructure.Changes Made
sentSzSaveas a member variable to theWS_SFTP_SEND_WRITE_STATEstructurewolfSSH_SFTP_SendWritePacketfunctionstate->sentSzSaveinstead of the local variableTesting
The changes have been tested locally using the following procedure:
-Nflag (non-blocking sockets) to connect to the serverputcommand to transfer a 2MB test fileThe test confirmed that the changes did not affect the functionality of the SFTP file transfer and that the non-blocking mode works correctly.
Link to Devin run: https://app.devin.ai/sessions/ce8d743061084bff9e1dc755bd55c96e
Requested by: andrew@wolfssl.com