Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add precheck for tar archive test. #4705

Merged
merged 1 commit into from Feb 1, 2023

Conversation

nevack
Copy link
Member

@nevack nevack commented Feb 1, 2023

Recently we discovered we do not properly handle broken tar archives.

The problem is running tar (in linting mode) on invalid archive and piping stdout to NSPipe introduces a hang as NSPipe cannot process such huge data amounts.

Fixing this problem by adding a precheck with tar (listing mode) with piping stdout to /dev/null.

Fixes: #4702

@ckerr
Copy link
Member

ckerr commented Feb 1, 2023

Notes: Fixed 4.0.0-beta.1 regression that incorrectly handled corrupt blocklists.

Recently we discovered we do not properly handle broken tar archives.

The problem is running tar (in linting mode) on invalid archive and
piping stdout to NSPipe introduces a hang as NSPipe cannot process
such huge data amounts.

Fixing this problem by adding a precheck with tar (listing mode) with
piping stdout to /dev/null.

Fixes: transmission#4702
@nevack
Copy link
Member Author

nevack commented Feb 1, 2023

Force push with Code Style fix.

@ckerr ckerr merged commit e0cc4f5 into transmission:main Feb 1, 2023
@GaryElshaw
Copy link
Contributor

Thank you for you work on this gentlemen.

ckerr added a commit that referenced this pull request Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

macOS client hangs when downloading corrupt compressed blocklists
3 participants