[LPT] Fix out-of-bounds access on low-rank dequantization constants #38702
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.32) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 134 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.293
Real PR Conversation Timeline
1 comments
"Review active on #38702"
general
weight: 0.35
v-Golubev
Details:
ReshapeTransformation, GatherTransformation and NetworkHelper:: moveDequantizationBefore indexed a dequantization constant's shape with a channel/axis derived from a different tensor, behind a guard that only excluded scalars. A model-declared rank-1 (or, for Concat, rank-2) dequantization constant therefore reached the subscript with an index past the end of the shape vector, an out-of-bounds heap read/write during compile_model before any inference runs. Pad such constants up to the data rank and bounds-check the axis against the constant's own shape.
Add regression tests for each sink:
Tickets:
- CVS-196733
AI Assistance:
- AI assistance used: yes
- Fix and unit-test were generated by AI. Logic validation and manual checks were performed by developer