Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1147717 - free'ing a not-connected agent closes STDIN
free'ing a not-connected agent closes STDIN
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libssh2 (Show other bugs)
7.1
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Kamil Dudka
Stefan Kremen
: EasyFix, Patch
Depends On:
Blocks: 1066486 1249581
  Show dependency treegraph
 
Reported: 2014-09-29 19:34 EDT by Jakub Filak
Modified: 2016-11-30 19:48 EST (History)
3 users (show)

See Also:
Fixed In Version: libssh2-1.4.3-9.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1249581 (view as bug list)
Environment:
Last Closed: 2015-11-19 00:21:00 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Example (899 bytes, text/plain)
2014-09-29 19:34 EDT, Jakub Filak
no flags Details
Propsed patch (399 bytes, patch)
2014-09-29 19:34 EDT, Jakub Filak
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2140 normal SHIPPED_LIVE Low: libssh2 security and bug fix update 2015-11-19 03:17:03 EST

  None (edit)
Description Jakub Filak 2014-09-29 19:34:13 EDT
Created attachment 942543 [details]
Example

Description of problem:
I had been playing with curl_easy_perform() when I found out that I cannot read from STDIN after uploading to a "scp://" URL.

Version-Release number of selected component (if applicable):
libssh2-1.4.3-8.el7_0.x86_64

How reproducible:
Always

Steps to Reproduce:
1. run the attached example
2.
3.

Actual results:
fcntl(0, F_GETFD): 0
libssh2_agent_{init,connect,free}
fcntl(0, F_GETFD): Bad file descriptor

Expected results:
fcntl(0, F_GETFD): 0
libssh2_agent_{init,connect,free}
fcntl(0, F_GETFD): 0

Additional info:
Comment 1 Jakub Filak 2014-09-29 19:34:56 EDT
Created attachment 942544 [details]
Propsed patch
Comment 4 Kamil Dudka 2014-10-10 07:16:36 EDT
Thanks for the bug report, minimal, example, and patch!

upstream commit:
http://git.libssh2.org/?p=libssh2.git;a=commitdiff;h=1ad20ac7
Comment 5 Kamil Dudka 2014-10-10 08:01:33 EDT
fixed in libssh2-1.4.3-16.fc22, libssh2-1.4.3-16.fc21, libssh2-1.4.3-10.fc20, and libssh2-1.4.3-8.fc19
Comment 12 errata-xmlrpc 2015-11-19 00:21:00 EST
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.

https://rhn.redhat.com/errata/RHSA-2015-2140.html

Note You need to log in before you can comment on or make changes to this bug.