Skip to content

Extension check logic edge case #4

@mrhapile

Description

@mrhapile

❌ Problem

filepath.size() >= 5 &&
filepath.substr(filepath.size() - 5) == ".wasm"

Fails for:

  • uppercase .WASM

  • paths like file.wasm.bak

✅ Fix (robust & cleaner)

fs::path p(filepath);
return p.extension() == ".wasm";

📌 Severity: Minor
📌 Phase impact: Phase 6 robustness

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions