Commit cfe7c77
[Fix] illegal memory access in GetInputIndices with optional inputs (microsoft#25881)
### Description
Fix illegal memory access in GetInputIndices with optional inputs
### Motivation and Context
When an input is optional, its ValueInfo may be nullptr.
The current implementation directly calls InputValueInfo->GetName(), leading to illegal memory access.
Update logic to skip optional inputs when valueInfo is nullptr .1 parent 248eaf0 commit cfe7c77
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
0 commit comments