904b572487
The functions for creating bpy vector properties used fixed size `default_value` arrays on the stack. The array was not large enough to store all the default values for larger multidimensional properties, which would write past the end of the array and start corrupting the stack, leading to crashes. The maximum total length of a bpy vector property is 32768 (32x32x32) which is a little large of an array to be putting on the stack, so the `default_value` array now uses `blender::Array` and allocates additional memory if the number of `default_value` elements exceeds its inline buffer size of 64. To simplify allocating arrays of the correct size, #bpy_prop_array_length_parse now fills in `array_len_info->len_total` when parsing a sequence. Pull Request: https://projects.blender.org/blender/blender/pulls/116811