VectorClassifier - update mode - segmentation fault

Description

The Application VectorClassifier in update mode (no output provided) fail since release 7.0.0 with a segmentation fault error

Steps to reproduce

from the OTB's forum : https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468

Configuration information

The error comes with OTB 7.0.0, Superbuild and binaries.

It works well with 6.6 binaries.

Probable cause

The scope definition of the variable layer : otbVectorPrediction.hxx#L161

Is this variable could a class member ?