Commit b2190fa
Fix userdata binding corner case (#1673)
This includes two fixes:
1) When registering symbols that need user data, sort the entries in
the set so the layer number is ignored. A needed udata iteam shouldn't
depend on the layer and separating them makes find_userdata_index()
sometimes find an index with different derivs status.
2) osl_bind_interpolated_param() is memcpy'ing derivs that might not
be there, yielding corrupted derivs and possibly a crash.
Signed-off-by: Alejandro Conty <[email protected]>1 parent 35aa264 commit b2190fa
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4469 | 4469 | | |
4470 | 4470 | | |
4471 | 4471 | | |
| 4472 | + | |
4472 | 4473 | | |
4473 | | - | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
4474 | 4479 | | |
4475 | 4480 | | |
4476 | 4481 | | |
| |||
0 commit comments