Bug 873789
Summary: | curl segfaults when sftp uploading file into fifo file | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Karel Srot <ksrot> | ||||
Component: | curl | Assignee: | Kamil Dudka <kdudka> | ||||
Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.3 | CC: | jjaburek, ovasik | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | curl-7.19.7-33.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
libcurl incorrectly checked return values of the SCP/SFTP write functions provided by libssh2.
Consequence:
Negative values returned from that functions were treated as negative download amounts, which caused crashes.
Fix:
The check of return values was fixed to treat all negative values as errors.
Result:
The errors that occur on the SSH level are now properly handle as errors.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-02-21 10:09:47 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 881827 | ||||||
Attachments: |
|
Description
Karel Srot
2012-11-06 17:28:15 UTC
(In reply to comment #0) > transfer never finishes (me on 6.3) or curl segfaults (kdudka on Fedora?) Nope, I had the latest RHEL-6 versions of curl and libssh2. The crash was fixed by the following upstream commit: https://github.com/bagder/curl/commit/1b15b31c However, the patch itself does not make the SFTP upload to FIFO running. This needs to be further investigated... The above mentioned patch fixes the crash. The fact that curl is not able to upload a file to a remote FIFO using SFTP seems to be limitation of the SFTP server we are using. I am getting the some failure with the sftp(1) client distributed with OpenSSH. Created attachment 650483 [details]
backport of upstream 1b15b31c
The second hunk of the patch is not applicable/needed for curl-7.19.7.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0393.html |