Subject: [libssh2] [ libssh2-Bugs-1878059 ] libssh2_scp_recv fails on large files

[libssh2] [ libssh2-Bugs-1878059 ] libssh2_scp_recv fails on large files

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 23 Jan 2008 04:27:55 -0800

Bugs item #1878059, was opened at 2008-01-23 12:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1878059&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Steven Ayre (stevenayre)
Assigned to: Nobody/Anonymous (nobody)
Summary: libssh2_scp_recv fails on large files

Initial Comment:
I am trying to download a 2,719,984,337 byte (2.5 GB) file using scp_get in Net::SSH2, but it fails with the error "Invalid response from SCP server, invalid size" (LIBSSH2_ERROR_SCP_PROTOCOL).

Upon investigation, the problem lies in libssh2 490 of src/scp.c (in CVS):

session->scpRecv_size = strtol(p, &e, 10);

This returns a ERANGE error as 2,719,984,337 is more than the 2,147,483,647 limit of a signed integer.

Is there any way to get the library to support files larger than this limit? I'm guessing it'll be more involved than changing the data type to long long and using strtoll?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1878059&group_id=125852

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-01-23