mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-29 08:27:43 +00:00
7a9df5c3d8
- Add _safe_resolve_path() helper function for path validation - Centralizes path security logic for reuse across codebase - Comprehensive validation: null bytes, drive letters, absolute paths, path traversal - Uses relative_to() check to prevent path traversal attacks - Refactor resolve_model_path() to use the new helper function Fixes CodeQL alert #10: Uncontrolled data used in path expression The new helper function makes the security check more explicit, which helps CodeQL recognize the path validation.