Commit 8316336
authored
[CWS] fix process context zero (#44066)
### What does this PR do?
This PR fixes a bug where the zero process context was being unintentionally reused. It removes the process-context allocation from the zeroer function; the pointer should only be initialized via setProcessContext and must not be modified directly. By removing the default allocation, we can detect incorrect access patterns earlier through a panic.
### Motivation
### Describe how you validated your changes
### Additional Notes
Co-authored-by: sylvain.afchain <[email protected]>1 parent 76ef9df commit 8316336
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | 1018 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | 1019 | | |
1024 | 1020 | | |
1025 | 1021 | | |
| |||
1620 | 1616 | | |
1621 | 1617 | | |
1622 | 1618 | | |
| 1619 | + | |
| 1620 | + | |
1623 | 1621 | | |
1624 | 1622 | | |
1625 | 1623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments