[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] 1.23: use after free()

From: Sergey Poznyakoff
Subject: Re: [Bug-tar] 1.23: use after free()
Date: Sat, 27 Mar 2010 22:24:40 +0200

Christian Weisgerber <address@hidden> ha escrit:

> The junk-fill malloc() debugging function on BSD reveals that there is
> some sort of use-after-free() bug in 1.23.

Thanks. Please apply the attached patch.


diff --git a/src/names.c b/src/names.c
index 2beaf3e..a3c6f58 100644
--- a/src/names.c
+++ b/src/names.c
@@ -986,6 +986,7 @@ collect_and_sort_names (void)
                  if (p->child)
                    rebase_child_list (p->child, name);
+                 hash_delete (nametab, name);
                  /* FIXME: remove_directory (p->caname); ? */
                  remname (p);
                  free_name (p);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]