Bug 218211

Summary: wget crashes when .listing file exists
Product: [Fedora] Fedora Reporter: Tomas Heinrich <theinric>
Component: wgetAssignee: Karsten Hopp <karsten>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: pvrabec
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-07 13:16:10 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:
Attachments:
Description Flags
fix none

Description Tomas Heinrich 2006-12-03 13:16:00 UTC
Description of problem:
  if file '.listing' exists in the local directory when wget retrieves 
  directory listing, it crashes with
  "*** glibc detected *** wget: double free or corruption"

Version-Release number of selected component (if applicable):
  1.10.2-3.2.1, 1.10.2-7

How reproducible:
  always.

Steps to Reproduce:
  $touch .listing
  $wget ftp://kernel.org/

  this time wget magically survives even the pointer is freed twice. somewhere
  before the call to free() a new chunk of memory is allocated at the 
  address stored in the pointer. listing data is stored in index.html[.x]

  $wget ftp://kernel.org/

  now wget finally crashes.

attaching patch that should fix this.

Comment 1 Tomas Heinrich 2006-12-03 13:16:01 UTC
Created attachment 142681 [details]
fix

Comment 2 Karsten Hopp 2006-12-07 13:16:10 UTC
I've built a new package with this patch which should show up in FC6-testing soon.
Please give it a try...