Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.6.0, 5.7.0, 5.8.0 Alpha
-
Component/s: Multimedia
-
Labels:None
-
Commits: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.