mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-12 17:57:38 +00:00
fix wrong check for tree ensemble regressor (#21595)
Fix missed ORT_ENFORCE check which caused heap buffer overflow because of out of bound access.
This commit is contained in:
parent
621b16f478
commit
c93b92a43f
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ Status TreeEnsembleCommon<InputType, ThresholdType, OutputType>::Init(
|
|||
nodes_falsenodeids.size() == nodes_values_as_tensor.size());
|
||||
ORT_ENFORCE(target_class_ids.size() == target_class_nodeids.size());
|
||||
ORT_ENFORCE(target_class_ids.size() == target_class_treeids.size());
|
||||
ORT_ENFORCE(target_class_ids.size() == target_class_treeids.size());
|
||||
ORT_ENFORCE(target_class_weights.empty() || target_class_ids.size() == target_class_weights.size());
|
||||
ORT_ENFORCE(base_values.empty() || base_values_as_tensor.empty());
|
||||
ORT_ENFORCE(nodes_hitrates.empty() || nodes_hitrates_as_tensor.empty());
|
||||
ORT_ENFORCE(nodes_values.empty() || nodes_values_as_tensor.empty());
|
||||
|
|
|
|||
Loading…
Reference in a new issue