Bug 218211 - wget crashes when .listing file exists
Summary: wget crashes when .listing file exists
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: wget
Version: 6
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-03 13:16 UTC by Tomas Heinrich
Modified: 2016-09-20 04:49 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-12-07 13:16:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fix (291 bytes, patch)
2006-12-03 13:16 UTC, Tomas Heinrich
no flags Details | Diff

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...


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