Skip to content

fix(MilesAudioManager): Leave provider in error state if neither provider exists. - #3281

Draft
CryoTheRenegade wants to merge 1 commit into
TheSuperHackers:mainfrom
CryoTheRenegade:bugfix/clang-tidy-audio-provider-bounds
Draft

fix(MilesAudioManager): Leave provider in error state if neither provider exists.#3281
CryoTheRenegade wants to merge 1 commit into
TheSuperHackers:mainfrom
CryoTheRenegade:bugfix/clang-tidy-audio-provider-bounds

Conversation

@CryoTheRenegade

Copy link
Copy Markdown

getProviderIndex() can return PROVIDER_ERROR, which becomes array index UINT_MAX. The fallback access has the same problem.
Check providerNdx < m_providerCount before both accesses. Leave the selected provider in the error state if neither provider exists.

Found by clang-tidy

@CryoTheRenegade CryoTheRenegade changed the title fix(MilesAudioManager): Leave the selected provider in the error state if neither provider exists. fix(MilesAudioManager): Leave provider in error state if neither provider exists. Sep 13, 2026
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.

1 participant