mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
pluginloader-win32: Zero initialize overlapped struct before use
Helper child process might be spawned multiple times for some reason then overlapped struct can hold garbage data. Always clear the struct. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3863>
This commit is contained in:
parent
16158df5b2
commit
f314884b7d
1 changed files with 5 additions and 0 deletions
|
@ -308,6 +308,11 @@ gst_plugin_loader_try_helper (GstPluginLoader * self, gchar * location)
|
|||
goto error;
|
||||
}
|
||||
|
||||
loader->overlap.Internal = 0;
|
||||
loader->overlap.InternalHigh = 0;
|
||||
loader->overlap.Offset = 0;
|
||||
loader->overlap.OffsetHigh = 0;
|
||||
|
||||
/* Async pipe should return zero */
|
||||
if (ConnectNamedPipe (loader->pipe, &loader->overlap)) {
|
||||
last_err = GetLastError ();
|
||||
|
|
Loading…
Reference in a new issue