Skip to content

fix: secure local pack source reads - #27

Merged
9Ashwin merged 1 commit into
mainfrom
codex/fix-local-source-toctou
Sep 5, 2026
Merged

fix: secure local pack source reads#27
9Ashwin merged 1 commit into
mainfrom
codex/fix-local-source-toctou

Conversation

@9Ashwin

@9Ashwin 9Ashwin commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Closes #26.

Local pack discovery now reads packs.json and referenced manifests through the library's root-anchored relative reader. This removes the check-then-open TOCTOU window while preserving bounded reads and stable error mapping.

Validation: go test -race ./..., go vet ./..., make quality, and git diff --check pass on Linux/macOS development environment.

@9Ashwin
9Ashwin merged commit f36f98d into main Sep 5, 2026
3 of 4 checks passed
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.

修复本地素材源目录 TOCTOU 越界

1 participant