[Bug 773720] New: directsoundsrc: incorrect cast of WinAPI function argument
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Oct 31 13:28:27 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=773720
Bug ID: 773720
Summary: directsoundsrc: incorrect cast of WinAPI function
argument
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Windows
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: artem.martynovich at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 338830
--> https://bugzilla.gnome.org/attachment.cgi?id=338830&action=edit
Cast first arg of mixerGetDevCaps to UINT_PTR
gst_directsound_src_mixer_find calls mixerGetDevCaps casting first parameter to
uint by using GPOINTER_TO_UINT. But the first parameter of mixerGetDevCaps is
actually UINT_PTR (see MSDN), which is 8 bytes long on 64-bit platform.
Such invalid usage causes read access violation inside of winmm.dll.
Attached a patch which casts the first argument to UINT_PTR.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list