Skip to content

feat: detect webxdc by application/webxdc+zip MIME type - #8820

Open
link2xt wants to merge 1 commit into
mainfrom
link2xt/webxdc-detect-by-mime-type
Open

link2xt wants to merge 1 commit into
mainfrom
link2xt/webxdc-detect-by-mime-type

Conversation

@link2xt

@link2xt link2xt commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

This is simpler and can count as hardening because we don't call async_zip parser anymore just to check if received file is a webxdc. This way if ZIP parser is buggy and e.g. panics, or gets into infinite loop, or is accidentally quadratic, or allocates a lot of memory, this cannot be triggered by just sending a file.

Make sure to enable "hide whitespace" when reviewing, rustfmt decided to reformat everything.

This is simpler and can count as hardening
because we don't call async_zip parser anymore
just to check if received file is a webxdc.
This way if ZIP parser is buggy and e.g. panics,
or gets into infinite loop, or is accidentally quadratic,
or allocates a lot of memory, this cannot be triggered
by just sending a file.
@link2xt
link2xt force-pushed the link2xt/webxdc-detect-by-mime-type branch from 7e16683 to 4e2ee61 Compare October 13, 2026 03:28
@link2xt
link2xt marked this pull request as ready for review October 13, 2026 03:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant