The patch set is ready now.
--
v9: winegstreamer: Implement finalize for media sink.
winestreamer: Implement wg_muxer_finalize.
winegstreamer: Introduce media_sink_write_stream.
winestreamer: Implement wg_muxer_{get,copy,free}_buffer.
winegstreamer: Implement ProcessSample for media sink.
winegstreamer: Implement wg_muxer_push_sample.
winegstreamer: Implement wg_muxer_add_stream.
winegstreamer: Create wg_muxer for media sink.
winegstreamer: Implement seeking query for wg_muxer sink pad.
winegstreamer: Introduce new wg_muxer struct.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3303
This fixes the following issue:
- Thread X holds the typelib cache list CS, and is iterating through the list.
- Thread Y calls Release on the typelib interface, reference count hits 0, it's waiting for the cache list CS to remove this typelib.
- Thread X finds the typelib in the cache list, returns it, exits the CS.
- Thread Y enters now the CS, removes the typelib from the cache list, and proceeds to free all of the resources associated with the typelib.
- Thread X tries to use the typelib, use after free.
The method used here to prevent incrementing the reference count is borrowed from MR !2752.
An alternative could be to decouple the actual typelib data from the `ITypeLib2` interface itself, e.g what gets stored into the typelib cache is just the data for the typelib, which would have its own private reference count locked behind the cache list CS. When the public `ITypeLib2` interface's reference count hits 0, it'd lock the typelib cache list CS, decrement the private reference count, and if the private reference count is 0 remove it from the list.
The alternative method would require major restructuring of the code, which is why I'd prefer to use the one in this MR.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4002
Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru>
--
v2: ntdll: Add ACTCTX field limit checks to RtlCreateActivationContext().
kernel32: Add ACTCTX field limit checks to CreateActCtxA().
kernel32/tests: Add some tests for CreateActCtx() with different structure sizes.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3839
--
v2: wined3d: Translate sampler states to sampler objects in wined3d_device_apply_stateblock().
d3d8: Store the texture's parent device as a d3d8_device pointer.
wined3d: Pass shader type and unmodified index to context_preload_texture().
wined3d: Handle texture LOD in wined3d_sampler_desc_from_sampler_states().
wined3d: Pass a wined3d_texture to wined3d_sampler_desc_from_sampler_states().
https://gitlab.winehq.org/wine/wine/-/merge_requests/4057