Bug 220392

Summary: rpm --import core dumps
Product: [Fedora] Fedora Reporter: Nigel Horne <njh>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-27 17:57:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nigel Horne 2006-12-20 22:14:41 UTC
Description of problem:

rpm --import will core dump if given an incorrect URL


Version-Release number of selected component (if applicable):
rpm-4.4.2-32

How reproducible:
100%


Steps to Reproduce:
1. rpm --import http://www.google.com
2.
3.
  
Actual results:
error: http://www.google.com: import read failed(-1).
Segmentation fault (core dumped)


Expected results:
error: http://www.google.com: import read failed(-1).


Additional info:

Comment 1 Jeff Johnson 2006-12-21 03:43:22 UTC
Index: rpmdav.c
===============================================================
====
RCS file: /cvs/devel/rpm/rpmio/rpmdav.c,v
retrieving revision 2.19.2.15
diff -u -b -B -w -p -r2.19.2.15 rpmdav.c
--- rpmdav.c    24 Nov 2006 17:34:48 -0000      2.19.2.15
+++ rpmdav.c    21 Dec 2006 03:42:00 -0000
@@ -294,6 +294,7 @@ static int davConnect(urlinfo u)
 if (_dav_debug)
 fprintf(stderr, "*** Connect to %s:%d failed(%d):\n\t%s\n",
                   u->host, u->port, rc, ne_get_error(u->sess));
+       u = urlLink(u, __FUNCTION__);   /* XXX error exit refcount adjustment */
        break;
     }

Will be in rpm-4.4.8-0.6 when built.

UPSTREAM


Comment 2 Panu Matilainen 2007-07-03 11:29:57 UTC
Also fixed in rpm.org tree now. F7 and rawhide are not affected as they don't
use neon transport.

Comment 3 Red Hat Bugzilla 2007-08-21 05:30:22 UTC
User pnasrat's account has been closed

Comment 4 Panu Matilainen 2007-08-22 06:34:28 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 5 Panu Matilainen 2007-08-27 17:57:20 UTC
This has been fixed in rpm-4.4.2.1-1.fc6 which has now been pushed to updates.

Comment 6 Panu Matilainen 2008-05-02 07:26:03 UTC
*** Bug 236302 has been marked as a duplicate of this bug. ***