The last good commit was 4bf6a2e564.
4bf6a2e564
The benefits are removing unnecessary reallocations of the string data and unnecessary recalculations of the size, better type safety, and more automatic memory management. Pull Request: https://projects.blender.org/blender/blender/pulls/118045