Skip to content

WasmParser: Stop taking FilePath in detectWasmFileType - #368

Merged
kateinoigakukun merged 1 commit into
mainfrom
katei/stop-open-in-magic-detection
Jun 29, 2026
Merged

WasmParser: Stop taking FilePath in detectWasmFileType#368
kateinoigakukun merged 1 commit into
mainfrom
katei/stop-open-in-magic-detection

Conversation

@kateinoigakukun

Copy link
Copy Markdown
Member

The caller usually uses a FileDescriptor to parse the file after detecting the file type, so opening fd inside the detection function is wasteful. We can instead move the fd opening to the caller. Also this reduces system dependencies in the WasmParser module.

The caller usually uses a `FileDescriptor` to parse the file after
detecting the file type, so opening fd inside the detection function is
wasteful. We can instead move the fd opening to the caller.
Also this reduces system dependencies in the `WasmParser` module.
@kateinoigakukun
kateinoigakukun force-pushed the katei/stop-open-in-magic-detection branch from d1b421c to 5f3078d Compare June 29, 2026 21:03
@kateinoigakukun
kateinoigakukun added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit e16765f Jun 29, 2026
17 checks passed
@kateinoigakukun
kateinoigakukun deleted the katei/stop-open-in-magic-detection branch June 29, 2026 21:29
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