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:
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
Also fixed in rpm.org tree now. F7 and rawhide are not affected as they don't use neon transport.
User pnasrat's account has been closed
Reassigning to owner after bugzilla made a mess, sorry about the noise...
This has been fixed in rpm-4.4.2.1-1.fc6 which has now been pushed to updates.
*** Bug 236302 has been marked as a duplicate of this bug. ***