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

QMimeDataBase crashes when reading certain shared-mime-info files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.4.0
    • Core: Other
    • None
    • 5e41f4137dd42a9a639be8743ae95c8e159bd4e0

    Description

      <?xml version="1.0" encoding="UTF-8"?>
      <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
        <mime-type type="text/foo">
            <comment>blah</comment>
            <magic>
                <match value="foo" type="byte" offset="0"/>
            </magic>
        </mime-type>
      </mime-info>
      

      Feed that as a shared-mime xml file to QMimeData base. It asserts when finding that type is 'byte' but value is a string.

      Attachments

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

        Activity

          People

            dfaure David Faure (Private)
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes