Commit 8024168
authored
Correctly check cpu data size not just descriptor. (#22612)
# Objective
Fixes #22609.
## Solution
We need to also validate the cpu data size before we do any copies, etc.
We'll ignore the users descriptor size if the configured it wrong. Not
sure if we want to to warn or if there's any scenario where overwriting
the size wouldn't be the right call.
## Testing
`fps_overlay` no longer crashes.1 parent bb10502 commit 8024168
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
167 | 175 | | |
168 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| |||
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
213 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
214 | 227 | | |
215 | 228 | | |
216 | 229 | | |
| |||
0 commit comments