Fix #117632: IME input crash after refactor to use std::string #117968

Merged
Hans Goudey merged 1 commits from HooglyBoogly/blender:fix-ime-string-bad into blender-v4.1-release 2024-02-08 05:52:28 +01:00

1 Commits

Author SHA1 Message Date
Hans Goudey 97d29ab011 Fix #117632: IME input crash after refactor to use std::string
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
The IME widget drawing code replaces the button's draw string, but it
did this with a C-style const cast which let this go unnoticed in
089c389b5c which changed the string from a C array to a C++
std::string, where it's UB to just change the length this way.
2024-02-07 19:51:03 -05:00