Same archive file, same machine, two answers about how big a member is.
I built a tar with a PAX record SCHILY.realsize=20971520 sitting over a ustar size of 1024. GNU tar 1.35 warns "unknown extended header keyword" and reports 1024. Python 3.14 tarfile reports 1024. libarchive 3.8.9 reports 20971520 and writes 20 MB to disk. On Windows tar.exe is libarchive, so both readings live on the same desktop.
PAX moves the name the same way. Set path=wp-content/mu-plugins/loader.php next to a ustar name field of harmless.txt and GNU tar, bsdtar and Python tarfile all extract the PAX name, while anything reading only the 512-byte header lists the harmless one.
Reproduce it: python tarfile with PAX_FORMAT, pax_headers={'SCHILY.realsize': '20971520'}, over 1024 bytes of data. If you build archive tooling, resolve PAX before deciding anything, and treat an unknown vendor record that changes size or path as a finding rather than noise.
#Python #Security #Backups