Commit 7650d83
authored
[UR] Check null pointer before handle in validation layer (#17474)
- Adjust mako template for ur_valddi.cpp so that pointers are
null-checked before handles
- Fixes issue with handles inside a pointer to a struct where the
pointer would be dereferenced to check for a null handle before the
pointer itself was null checked.
- Updates some tests which passed additional null pointer args when
checking for null handle errors, which would fail since the null pointer
errors take priority now.
Issue was found during coverity scan.1 parent a111e4b commit 7650d83
File tree
5 files changed
+488
-483
lines changed- unified-runtime
- scripts/templates
- source/loader/layers/validation
- test/conformance
- device
- program
- usm
5 files changed
+488
-483
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments