100% crash when removing CPDs from a placed static mesh.

Hey Epic,

We have discovered a 100% crash in CPD removal related to indexing issues related to unsigned rollover. I have already made the fix and tested it in our code base, and have put together a pull request for epic to bring in the fix to 5.7+.

Here is the pull request for the crash fix: https://github.com/EpicGames/UnrealEngine/pull/14174

[Attachment Removed]

Steps to Reproduce
1) Place a static mesh with materials that support cpds

2) Add CPD overrides on the static mesh

3) remove the entire collection of CPDs by clicking the trash can.

[Attachment Removed]

Hi Lucy, I see the pull request has been sent on our side to the appropriate team. I have linked this ticket to our internal tracking so they will have the additional information here.

Thanks for the report!

[Attachment Removed]