Commit 93f96dc
committed
Validate input to C2CPlan::c2c and R2RPlan::r2r
The underlying C function requires that the arrays passed into it have the same length and alignment as was used to create the plan.
Adding this check prevents out-of-bounds reads and possibly writes.
The same check is already in place for C2R and R2C plans.
Fixes: 3e84ddd
Fixes: 862fead1 parent acdb209 commit 93f96dc
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| 319 | + | |
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
| |||
0 commit comments