Add missing attribute array validation for TreeEnsembleClassifier
Merged
VR
8mo ago+123+123+012345678901234567890123456789-17-17-01234567890123456789
Description
The TreeEnsembleAttributesV3 constructor in tree_ensemble_attribute.h had 15 ORT_ENFORCE size-validation checks in the regressor path but none in the classifier path. A malformed ONNX model with mismatched TreeEnsembleClassifier attribute arrays (e.g., class_ids vs class_nodeids) could cause out-of-bounds access.
To fix this, moved all ORT_ENFORCE validation checks out of the else (regressor) branch so they apply to both classifier and regressor paths.