Skip to content

Harden verify_sources cache handling - #1

Merged
ikeige-coder merged 1 commit into
ikeige-coder:mainfrom
Tet-9:fix/sources-cache-robustness
Oct 5, 2026
Merged

ikeige-coder merged 1 commit into
ikeige-coder:mainfrom
Tet-9:fix/sources-cache-robustness

Conversation

@Tet-9

@Tet-9 Tet-9 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

verify_sources crashed if the cache held valid JSON of the wrong shape (e.g. []), and a failed cache write could abort verification. Treat a bad cache as empty, use UTF-8, write atomically, never fail verification over the cache, and add tests.

@Tet-9
Tet-9 requested a review from ikeige-coder as a code owner October 5, 2026 08:05
@ikeige-coder ikeige-coder reopened this Oct 5, 2026
@ikeige-coder
ikeige-coder merged commit 4afaac8 into ikeige-coder:main Oct 5, 2026
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.

2 participants