Page MenuHome

Fix T94085: Crash with empty stroke list
AbandonedPublic

Authored by Pratik Borhade (PratikPB2123) on Jan 9 2022, 12:54 PM.

Details

Summary

Fix T94085.
Exit the code early if stroke list is empty
Otherwise exception will be thrown for writing at unallocated memory

Diff Detail

Repository
rB Blender

Event Timeline

Thanks for the patch, I ended up committing an alternative fix.

  • Exit in curve_draw_init since it allocates memory which needs to be freed.
  • I don't think RNA_struct_property_is_set is correct as a property could be set but still to an empty list.

No problem. Thanks for reviewing :)