onnxruntime
56bce083 - Add validation for negative position_ids in EmbedLayerNorm (#27573)

Commit
10 days ago
Add validation for negative position_ids in EmbedLayerNorm (#27573) ### Description Adds a missing lower-bound validation check for `position_col_index` (derived from `position_ids` input) in the `EmbedLayerNormalization` contrib operator. A negative value in `position_ids` could bypass the existing upper-bound-only check and cause an out-of-bounds heap read before the `position_embedding` buffer. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
Author
Parents
Loading