Commit 928df7c
authored
[Fix] illegal memory access in GetInputIndices with optional inputs (#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 d51430c commit 928df7c
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