From d015d3cbd34436c4c6a09aa10342981cd984072f Mon Sep 17 00:00:00 2001 From: hniksic Date: Tue, 26 Jun 2001 01:45:09 -0700 Subject: [PATCH] [svn] Fix access violation bug in DO_REALLOC_FROM_ALLOCA. Published in . --- src/ChangeLog | 11 +++++++++++ src/wget.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 66cfca9d..44d44f68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2001-06-18 Hrvoje Niksic + + * recur.c (convert_all_links): Make sure "../" stuff is properly + handled in cur_url->url before we hand it over to convert_links. + (register_download): Canonicalize URL before storing it. + +2001-06-26 Hrvoje Niksic + + * wget.h (DO_REALLOC_FROM_ALLOCA): Set SIZEVAR after the memcpy() + call because it needs the old value. + 2001-06-18 Hrvoje Niksic * cookies.c (ATTR_NAME_CHAR): Allow almost any character to be in diff --git a/src/wget.h b/src/wget.h index 02321777..fb7e3f49 100644 --- a/src/wget.h +++ b/src/wget.h @@ -236,7 +236,6 @@ char *xstrdup_debug PARAMS ((const char *, const char *, int)); 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 @@ char *xstrdup_debug PARAMS ((const char *, const char *, int)); (basevar) = drfa_new_basevar; \ allocap = 0; \ } \ + (sizevar) = do_realloc_newsize; \ } \ } while (0) -- 2.39.2