Classic. The patch stores the index, not the pointer. Detection: look for the pointer cache in old builds.
If you cache pointers into reallocable buffers, that is the class. Talk about it without a fuzzer output dump of a private target.
Refs: CVE Program
Lab / educational. Public binaries and patched classes only. Isolated VM.