Page MenuHome

Fix T99576: Guard against crash due to invalid names in BKE_id_attribute_remove
ClosedPublic

Authored by Tom Edwards (artfunkel) on Aug 18 2022, 7:46 PM.

Details

Summary

It's possible for misbehaving scripts written before 3.3 to reach this state and crash Blender. With this change, the error is reduced to a Python exception.

T99576

Diff Detail

Repository
rB Blender

Event Timeline

Tom Edwards (artfunkel) requested review of this revision.Aug 18 2022, 7:46 PM
Tom Edwards (artfunkel) created this revision.
Tom Edwards (artfunkel) retitled this revision from Fix T99576: Guard against invalid names in BKE_id_attribute_remove to Fix T99576: Guard against crash due to invalid names in BKE_id_attribute_remove.Aug 18 2022, 10:24 PM

Thanks for the patch!

This revision is now accepted and ready to land.Aug 19 2022, 2:02 AM

I changed the message to be a bit more specific in the final commit.