Commit fa703b4
authored
Fix nullptr dereference segfault in QNN runtime when op_package_options is null (#20759)
This PR fixes a nullptr dereference segmentation fault in Qualcomm QNN
backend's runtime when 'op_package_options' is not present in the
serialized metadata (which is common for standard models). It adds
null-safety checks before dereferencing options in QnnManager.cpp and
QnnBackendCommon.cpp. Fixes #20619.1 parent 089b0d0 commit fa703b4
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
0 commit comments