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