Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.7.0, 5.8.0 Alpha
-
None
-
c6462eed99827154823e8e9ee07b8cf9311b518d
Description
There is a bug in MFStream::Seek regarding the parameter pqwCurrentPosition.
Instead of checking against NULL, the function dereferences the pointer:
if (*pqwCurrentPosition)
*pqwCurrentPosition = pos;
https://github.com/qt/qtmultimedia/blob/dev/src/plugins/wmf/mfstream.cpp#L239
This will crash if NULL is passed, or fail to return the new position if the given pointer points to a zero-initialized value.