You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden extensions module with safety and robustness improvements
- Replace per-call Regex::new().unwrap() with once_cell::sync::Lazy statics
in types.rs for NAME_RE and VERSION_RE patterns
- Replace Mutex::lock().expect() with unwrap_or_else(|e| e.into_inner())
in wasm/host.rs for all global registry locks (consistent with existing pattern)
- Fix unwrap_or(Ok(...)) to unwrap_or_else(|_| ...) in wasm/mod.rs
- Add manifest validation on extension load in state.rs
- Add zip bomb protection with entry count and total size limits in utils.rs
- Skip symlinks in copy_dir_recursive to prevent symlink attacks
- Add path traversal prevention (reject '..' components) in validate_workspace_path
- Add URI validation in host_get_document_text_by_uri
- Implement graceful shutdown with 5s timeout for Node.js extension host process
0 commit comments