Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56134

Potential null pointer dereference in MFStream

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.3, 5.7.2, 5.8.0
    • 5.6.0, 5.7.0, 5.8.0 Alpha
    • Multimedia
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            jspohr jspohr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes