- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.6.0, 5.7.0, 5.8.0 Alpha
- 
    None
- 
        c6462eed99827154823e8e9ee07b8cf9311b518d
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.
| For Gerrit Dashboard: QTBUG-56134 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 174604,2 | WMF: fix incorrect pointer dereference | 5.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |