bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Circular symlinks lead to segfault


From: Florian Oppermann
Subject: [Bug-tar] Circular symlinks lead to segfault
Date: Wed, 25 Mar 2015 17:53:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear developers,

tar doesn't detect circular symlinks in all cases which leads to endless
iterations (stopped by the OS) when using the -h switch.

The following example reproduces the error:

mkdir a
ln -s ../a a/link
tar -chf a.tar a

Switching on verbose mode shows output like:

> a/link/link/link/link/link/link/link/[…]

The output file actually gets quite large as every iteration adds
another folder.

Note that the following shows an error but doesn't loop endlessly:

mkdir b
ln -s ./a b/b
ln -s ./b b/a
tar -chf b.tar b

> tar: b/a: Cannot stat: Too many levels of symbolic links tar: b/b: 
> Cannot stat: Too many levels of symbolic links tar: Exiting with 
> failure status due to previous errors

I didn't find any report of this bug with a short search.

Best regards,
Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJVEugHAAoJEG3w8CyVCAFpG8sP/2v1ecve8eBT6pTpl6DV43jq
BmZb1u9b5VCKurbrpVUeXA1vHdf7OaOiY6vcyf72rqmmaVTo0qn5cjUU6RLlxZoz
CtZ3YYdjsFKk2W3bZyhv+bR0qGOPavJMQxMNeDdcQP0xQtPgPyq+ws1k/K0/Jx+Q
CjiwMiZ+Doa7z+qc/PFNBxN1M19P11C9TSJ1B+0ACXRvKrS5gEhnWdmVAEtl1hbF
2eUKixtlUsItne+LQEmtunvxHJneC1He+6ssriozXW2w7xx6bT/9ko4IjNjQ7WCd
Ia+AsDmQpenn7yFpgtMGDrsG+z+TmKXj7uF8TanwD6tNHvD2SJbCrl3uAbJMgh9U
S3LyF9uu2X+2dZTxDtvT/ki0iBVh6w8I7S5gY9hx2JYltqp4F5yqEeWhm7tYPcMO
5dOsBnbUPtgnIYpw9d6rKlpN25f3KWSioTDD3srFQcmtQ5kL9X0xypmgO/3YQjy6
xAgXMmO9vbUH3ryS1s0ZJKN37mveMRB9Y+YN1TRvaeffkbfqQVDTvSjkPGnpcCFw
lUTvbFeAV6WD/2f0jhlpdhh+osKJ4gjhIKWFCGSAd2S46JE0tkoR48geex7X2Jcp
f8xfwGADGefp402IFtHGe3z1fGmx05eSCANF5ibYUIlF9urLtlr9lu9jn1PjJQ/s
c8wW/5q0AIADV1fiUzvt
=1WEI
-----END PGP SIGNATURE-----



reply via email to

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