Comments (3)
Hi bagder,
Thank you for the report. I'm looking into reproducing the problem. In the mean time if this is being induced by a call to wolfSSH_SFTP_Open please have the input argument "handleSz" set to a length of 256 with a matching "handle" input buffer that is at least 256 bytes (or WOLFSSH_MAX_HANDLE from wolfssh/wolfsftp.h). This is the max handle size that can be sent across according to the RFC and it may be that the buffer being passed in is too small to hold the handle found from the SFTP packet.
Regards,
Jacob
from wolfssh.
Hi @bagder,
After looking over the branch linked to I think setting the handleSz will resolve the issue.
In lib/wolfssh.c
507 case SSH_SFTP_DOWNLOAD_INIT:
(add) sshc->handleSz = WOLFSSH_MAX_HANDLE; /* size of "handle" buffer in struct from lib/ssh.h */
508 rc = wolfSSH_SFTP_Open(sshc->ssh_session, sftp_scp->path,
509 WOLFSSH_FXF_READ, NULL,
510 sshc->handle, &sshc->handleSz);
~jacob
from wolfssh.
Yes, that seems to fix it!
Can I suggest you document this somewhere? I was certainly not obvious to me...
from wolfssh.
Related Issues (20)
- Implement remote port forwarding with lwip HOT 1
- OpenSSH sftp cannot connect with v1.4.14-stable, whilst it could with v1.4.13-stable HOT 11
- Enhancing portability and error handling in wolfSSH HOT 1
- diffie-hellman-group-exchange-sha256 broken since v1.4.12-stable HOT 2
- non blocking mode does not work : infinte lines of "client would read block" in offical test client program HOT 8
- make fail with sftp HOT 2
- wolfSSH Espressif ESP32 Managed Component Support HOT 1
- wolfSSL GitHooks pre-commit: incompatible on Visual Studio Windows WSL
- Double Free or Corruption on 1.4.13 and master branch HOT 5
- Rekeying doesn't work in certain cases HOT 1
- If the client is suspended, the server enters a busy loop with WS_WINDOW_FULL HOT 6
- DoReiceive() does not update the input buffer after DoPacket(), when it has to. HOT 1
- Espressif fixes: MISC_WARNING not expanded, vars not initialized, not used
- Missing wolfssl/options.h in esp-idf managed component version "1.4.15-stable-preview5"
- Runtime configurability of key signature algorithms for KEX HOT 7
- Failed to connect to wolfssh server with kex ID_ECDH_SHA2_NISTP* HOT 1
- Error when building wolfssh with only WOLFSSH_NO_ECDSA or WOLFSSH_NO_ECDH HOT 2
- wolfssh_template / wolfssh_echoserver don't build HOT 5
- Warnings and Errors when publishing wolfSSH Espressif Managed Component
- Post-Quantum: Liboqs v0.7.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssh.