This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=04f63813361b97b7da13653d547736b00e852b90 commit 04f63813361b97b7da13653d547736b00e852b90 Author: Guillem Jover <guil...@debian.org> AuthorDate: Sat Sep 15 02:33:24 2018 +0200 libdpkg: Fix filesystem digest parsing Allocate the digest into the non-freeing memory pool, as we have stopped doing that for the entire loaded file with the switch to the file_slurp() function. Otherwise when we release the varbuf the fsys nodes will be pointing to garbage. Fixes: commit 1166bbb5f099580a0c1c26d0e29b1ae3fe11ad0f Reported-by: Sven Joachim <svenj...@gmx.de> Bisected-by: Sven Joachim <svenj...@gmx.de> --- lib/dpkg/db-fsys-digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpkg/db-fsys-digest.c b/lib/dpkg/db-fsys-digest.c index cc032f14a..d5f11ffea 100644 --- a/lib/dpkg/db-fsys-digest.c +++ b/lib/dpkg/db-fsys-digest.c @@ -126,7 +126,7 @@ parse_filehash_buffer(struct varbuf *buf, /* Add the file to the list. */ namenode = findnamenode(filename, 0); - namenode->newhash = thisline; + namenode->newhash = nfstrsave(thisline); } } -- Dpkg.Org's dpkg