Red Hat Bugzilla – Bug 997185
sendrecv.c example incorrect type for sockfd
Last modified: 2015-07-22 01:42:55 EDT
Description of problem: The example /usr/share/doc/libcurl-devel-7.19.7/sendrecv.c uses a parameter sockfd of type int in the call to curl_easy_getinfo() where it should use a long. This causes a bufferoverflow that makes the binary fail if no optimization is used for its compilation. Because the resulting binary seems to work correctly when optimization is used I mistakenly suspected gcc to be the cause of this issue (bug #996793). The issue seems to be fixed upstream. Version-Release number of selected component (if applicable): libcurl-devel-7.19.7-37
upstream commit: https://github.com/bagder/curl/commit/bcfb9ea3
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-1254.html