Bug 802382

Summary: libssh2 causes curl to crash when downloading large files (>2G) using sftp
Product: [Fedora] Fedora Reporter: Kamil Dudka <kdudka>
Component: libssh2Assignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 15CC: djuran, kdudka, paul, spoyarek
Target Milestone: ---Keywords: EasyFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libssh2-1.2.7-3.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-26 03:56:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 801428    

Description Kamil Dudka 2012-03-12 12:39:13 UTC
+++ This bug was initially created as a clone of Bug #801428 +++

Created attachment 568642 [details]
straight backport from libssh2-1.2.8

Description of problem:
libssh2 causes curl to crash when downloading large files (>2G) using sftp

Version-Release number of selected component (if applicable):
libssh2-1.2.2-7.el6_1.1

How reproducible:
Always

Steps to Reproduce:
1) Create a large file (>2G) on the server
dd if=/dev/zero of=file.txt bs=1024 count=2500000

2) Fetch the file over sftp using curl:
curl -vu '$user:$pass' --connect-timeout 5 sftp://remote.server/root/file.txt > /dev/null
  
Actual results:

Crash

Expected results:

No Crash.

Additional info:

I have isolated the patch that fixes this from libssh2-1.2.8. Attached.

Comment 1 Fedora Update System 2012-03-12 13:02:01 UTC
libssh2-1.2.7-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/libssh2-1.2.7-3.fc15

Comment 2 Fedora Update System 2012-03-12 13:02:11 UTC
libssh2-1.2.7-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libssh2-1.2.7-3.fc16

Comment 3 Fedora Update System 2012-03-15 02:19:54 UTC
Package libssh2-1.2.7-3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libssh2-1.2.7-3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3699/libssh2-1.2.7-3.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-03-16 19:33:00 UTC
libssh2-1.2.7-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libssh2-1.2.7-4.fc16

Comment 5 Fedora Update System 2012-03-26 03:56:33 UTC
libssh2-1.2.7-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-03-26 17:58:32 UTC
libssh2-1.2.7-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2012-04-02 23:27:36 UTC
libssh2-1.2.7-3.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.