Skip to content

Conversation

@ryonakano
Copy link
Member

This would never happen but the current code causes out of range access to themes array if prefers_accent_color, which is int, happens to be a value under 0.

Also refactor to be a early return and improve the log message—show the invalid value—while I'm here.

@danirabbit danirabbit moved this to Needs review in OS 8.1.1 Jan 25, 2026
@danirabbit danirabbit requested a review from a team January 25, 2026 16:27
@danirabbit danirabbit merged commit f04fcb3 into main Jan 25, 2026
4 checks passed
@danirabbit danirabbit deleted the ryonakano/fix-out-of-range-access branch January 25, 2026 20:35
@github-project-automation github-project-automation bot moved this from Needs review to Done in OS 8.1.1 Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants