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

Corrupted gzipped sitemap causes OSError crash #484

Open
JustAnotherArchivist opened this issue Mar 16, 2024 · 0 comments
Open

Corrupted gzipped sitemap causes OSError crash #484

JustAnotherArchivist opened this issue Mar 16, 2024 · 0 comments
Labels

Comments

@JustAnotherArchivist
Copy link
Contributor

The sitemap parser does not catch potential decompression errors from a gzipped sitemap.

For example, http://readyforlife.kera.org/sitemap.xml.gz is corrupted. It begins with a gzipped sitemap, but then a broken WordPress plugin (WP Super Cache) appended a <!-- comment without compression. This manifests as a crash with:

2024-03-16 16:41:27,629 - wpull.application.app - ERROR - OSError: Not a gzipped file (b'<!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant