pvizeli / securetar

Secure Tarfile library
Apache License 2.0
6 stars 2 forks source link

Fix large inner files with PAX format #36

Closed bdraco closed 6 months ago

bdraco commented 6 months ago

If the file size is larger than 12 digits tarfile writes a larger header when using PAX. Since we can't set the size to anything other than 0 initially (in case the inner tar creation raise), we set the mtime to a float to ensure we get a PAX header

fixes https://github.com/home-assistant/supervisor/issues/4924