tar: postpone creation of symlinks with "suspicious" targets. Closes 8411
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Jul 2017 15:20:13 +0000 (17:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 24 Jul 2017 15:20:13 +0000 (17:20 +0200)
commitb920a38dc0a87f5884444d4731a8b887b5e16018
tree5d845976a9471e705183db9afbbe7885e9070b52
parentc810978552bc0133ba723ababaa178c8d53256e1
tar: postpone creation of symlinks with "suspicious" targets. Closes 8411

function                                             old     new   delta
data_extract_all                                     968    1038     +70
tar_main                                             952     986     +34
scan_tree                                            258     262      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 108/0)             Total: 108 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/data_extract_all.c
archival/tar.c
archival/tar_symlink_attack [new file with mode: 0755]
coreutils/link.c
include/bb_archive.h
testsuite/tar.tests