Repository navigation
fix: posbile incorrect reference to unintialized key_index variable - #77305
Conversation
|
it's hard to test... because the crash is currently in debug builds, the behavior is the same before and after modifying the code in release mode |
|
@wxybear why |
|
@hanfei1991 When running |
|
You forgot to add a test :/ |
|
@PedroTadim I'd like to clarify that this pr does not change the release builds' behaivior, it just removes undefined behavior so that debug builds will no longer crash due to assert.. So it's hard to test...
|
|
Hi @wxybear @hanfei1991 — while reviewing this PR I found the following:
Could you review the test PR and add the |
fix #77145
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
fix posbile incorrect reference to unintialized key_index variable, which may lead to crash in debug builds
(This uninitialized reference won't cause issues in release builds because subsequent code are likely to throw errors.)
Documentation entry for user-facing changes