How the PVS-Studio Team Improved Unreal Engine's Code
unrealengine.com
unrealengine.com
All these rarely visited code path bugs matter in terms of security of course.
So then comes the question why was it not detected in production (there's a good chance that there's games out there that have shipped with that line in there). Memcmp doesn't have any side effects, so instead of something updating, something just doesn't update. The function is called 'Optimize', perhaps it just calculates a more optimal dataset, and then does nothing with it, leaving the unoptimized data in there. No one would notice and some path would just be slightly less optimal.