I had tried that fix already but when i try this  after applying the fix
wget -E -H -k -K -nh -p -nc -P Downloads  https://www.verisign.com
i find that after index.html(first page) it gets stuck.


Hrvoje Niksic wrote:

> "T. Bharath" <[EMAIL PROTECTED]> writes:
>
> > void *drfa_new_basevar = xmalloc (do_realloc_newsize);  \
> >    memcpy (drfa_new_basevar, basevar, sizevar);    \
> >
> > we are trying to copy  sizevar bytes of  basevar to drfa_new_basevar.One
> > thing to notice here is basevar is not of size
> > sizevar now since we have  incremented  sizevar to a newsize.
>
> Thanks a lot for the report and the analysis.  The fix is relatively
> straightforward: just make sure that SIZEVAR is incremented only after
> we no longer need the old value.
>
> 2001-06-26  Hrvoje Niksic  <[EMAIL PROTECTED]>
>
>         * wget.h (DO_REALLOC_FROM_ALLOCA): Set SIZEVAR after the memcpy()
>         call because it needs the old value.
>
> Index: src/wget.h
> ===================================================================
> RCS file: /pack/anoncvs/wget/src/wget.h,v
> retrieving revision 1.23
> diff -u -r1.23 wget.h
> --- src/wget.h  2001/05/27 19:35:15     1.23
> +++ src/wget.h  2001/06/26 08:42:20
> @@ -236,7 +236,6 @@
>      do_realloc_newsize = 2*(sizevar);                                          \
>      if (do_realloc_newsize < 16)                                               \
>        do_realloc_newsize = 16;                                                 \
> -    (sizevar) = do_realloc_newsize;                                            \
>    }                                                                            \
>    if (do_realloc_newsize)                                                      \
>      {                                                                          \
> @@ -249,6 +248,7 @@
>           (basevar) = drfa_new_basevar;                                         \
>           allocap = 0;                                                          \
>         }                                                                       \
> +      (sizevar) = do_realloc_newsize;                                          \
>      }                                                                          \
>  } while (0)
>



Reply via email to