The `ReadAdaptedClass` function in `src/classify/adaptive.cpp` reads an `ADAPT CLASS STRUCT` from a pre-adapted-template `.a` file without neutralizing `TempProtos` and `Config` pointer fields before any destructor path. If the legacy engine is selected, `classify use pre adapted templates` is enabled, and an attacker can write the output-basename `.a` file, the success or rejection path can pass file-controlled pointers to `~ADAPT CLASS STRUCT` and `operator delete`, leading to memory corruption and denial of service.