Files
test/source
Sybren A. Stüvel 4b642637b9 UI: fix nullptr access in slider drawing code
Fix a null pointer access in the slider drawing code. Determining the
width of the property label used `std::string::c_str()`, which on a
calloc'ed `std::string` returns `nullptr`.

The fix was to use `MEM_new()` instead of `MEM_callocN()` to allocate
the struct that contains the `std::string`.

Pull Request: https://projects.blender.org/blender/blender/pulls/127760
2024-09-17 15:07:11 +02:00
..