You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program creates a tar archive that contains itself. This creates an archive of infinite size. If you run it, please be prepared to kill it before it fills your disk space.
I'm not sure if this happens only with append_dir_all or if there are other ways to trigger this.
GNU tar notices this situation and refuses to add the archive being created to itself. It does this by keeping track of the device and inode numbers of the archive being created and comparing that to every file being added. This is almost not overhead as each file needs to be stated anyway.
For this crate, the archive being created may is not necessarily a file, of course, but perhaps the check could be added for those cases where it is?
The text was updated successfully, but these errors were encountered:
The following program creates a tar archive that contains itself. This creates an archive of infinite size. If you run it, please be prepared to kill it before it fills your disk space.
I'm not sure if this happens only with
append_dir_all
or if there are other ways to trigger this.GNU tar notices this situation and refuses to add the archive being created to itself. It does this by keeping track of the device and inode numbers of the archive being created and comparing that to every file being added. This is almost not overhead as each file needs to be stated anyway.
For this crate, the archive being created may is not necessarily a file, of course, but perhaps the check could be added for those cases where it is?
The text was updated successfully, but these errors were encountered: