Skip to content

Fix Dictionary::operator[] from C++ accidentally modifying const dictionaries. #106636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ivorforce
Copy link
Member

This fixes a long standing subtle bug where Dictionary can be accidentally modified on const operator[] subscript.

Since #106600 might take a while longer to merge (since it introduces a new type to bikeshed over), I thought it may be appropriate to PR the most important fix separately, so we have time to work through possible regressions.

…dictionaries.

Fix `AudioStreamWav` inserting keys into the input dictionary.
@Ivorforce Ivorforce added this to the 4.5 milestone May 20, 2025
@Ivorforce Ivorforce requested a review from a team as a code owner May 20, 2025 13:44
@Ivorforce Ivorforce added the bug label May 20, 2025
@Ivorforce Ivorforce requested a review from a team as a code owner May 20, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant