]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix use-after-free in delayed link processing (newc format) 1091/head
authorPavel Raiskup <praiskup@redhat.com>
Fri, 23 Nov 2018 13:08:48 +0000 (14:08 +0100)
committerPavel Raiskup <praiskup@redhat.com>
Fri, 23 Nov 2018 13:27:35 +0000 (14:27 +0100)
commitd71b157c2f048f6c88bf9474743faabdc56f6015
tree27c57799907c1baeb5f023a057e93c630e4ff8db
parentc114bb9fb585e7d74158afa7afbe8c44922479de
Fix use-after-free in delayed link processing (newc format)

During archiving, if some of the "delayed" hard link entries
happened to disappear on filesystem (or become unreadable) for
some reason (most probably race), the old code free()d the 'entry'
and continued with the loop;  the next loop though dereferenced
'entry' and crashed the archiver.

Per report from Coverity.
tar/write.c