From c464874c1e695efaade7703f46f1b7e7cd0a4099 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 28 May 2015 10:39:39 +0200 Subject: [PATCH] unpack: make sure the xucd callbacks don't get a dangling pointer. If the current entry filename has been changed, the pointer must be updated to point to the updated string. --- lib/package_unpack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index bcc54e16..36f7f886 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -439,6 +439,7 @@ unpack_archive(struct xbps_handle *xhp, break; } else { if (xhp->unpack_cb != NULL) { + xucd.entry = entry_pname; xucd.entry_extract_count++; (*xhp->unpack_cb)(&xucd, xhp->unpack_cb_data); }