Pass --ignore-zeros to tar when decompressing zstd-compressed tarballs by smowton · Pull Request #2768 · github/codeql-action (original) (raw)
PR Overview
This PR updates the tar extraction command for zstd-compressed tarballs by adding the "--ignore-zeros" flag to address potential issues when the archive contains trailing zero bytes.
- Updated the argument array in the extractTarZst function to include "--ignore-zeros".
- Added detailed comments explaining the need for the additional flag and linking to a relevant issue for context.
Changes
| File | Description |
|---|---|
| src/tar.ts | Updated the tar extraction command to safely handle trailing zeroes by passing --ignore-zeros. |
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more