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:
Seungha Yang 2023-02-01 23:08:03 +09:00 committed by GStreamer Marge Bot
parent 16158df5b2
commit f314884b7d

View file

@ -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 ();