Commit 4f1b7e9
committed
Fix potential SIOF issue with checker layers
Since the order of global initialization is undefined, the context
variable, accessed directly from the events and leak checkers, might
be unitialized.
This patch fixes this by using the getInstance() accessor method that
makes sure that the validation layer context is initialized before use.1 parent 1357333 commit 4f1b7e9
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- source/layers/validation/checkers
- basic_leak
- events_checker
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments