BugBot Review
BugBot completed review and found 1 potential issue
Request ID: serverGenReqId_c18aace7-c081-4d97-b3bb-fb2c042a4794
Details
Bug: Tar Format Mismatch Causes Decompression Failures
The from_ext function now defaults to TarFormat::Raw for unknown file extensions. However, open_tar incorrectly treats TarFormat::Raw identically to TarFormat::TarGz, applying gzip decompression. This mismatch causes files with unknown extensions (classified as Raw) to be processed as gzipped tar files, leading to decompression failures for non-compressed or non-gzipped files. This regression affects code paths using TarFormat::Auto on unknown extensions, breaking the previous fallback to tar.gz.
src/file.rs#L653-L662
Lines 653 to 662 in bc805ff
src/file.rs#L745-L747
Lines 745 to 747 in bc805ff
Was this report helpful? Give feedback by reacting with 👍 or 👎