[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Fix: Large files in WARC
From: |
Ángel González |
Subject: |
Re: [Bug-wget] Fix: Large files in WARC |
Date: |
Wed, 01 Feb 2012 20:38:42 +0100 |
User-agent: |
Thunderbird |
On 01/02/12 00:23, Gijs van Tulder wrote:
> Hi,
>
> Another small problem in the WARC section: wget crashes with a
> segmentation fault if you have WARC output enabled and try to download
> a file larger than 2GB. I think this is because of the size_t, ftell
> and fseek in warc.c.
>
> The attached patch changes the references from size_t to off_t, ftell
> to ftello, fseek to fseeko. On my 64-bit system this seemed to fix the
> problem (but I'm not an expert in these matters, so maybe this doesn't
> hold for 32-bit systems).
>
> Regards,
>
> Gijs
You would also need
#define _FILE_OFFSET_BITS 64
but that seems already handled by configure.
I'm not sure if that would work for 32bit Windows, though.
- Re: [Bug-wget] Fix: Large files in WARC,
Ángel González <=