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

QColor deserialization not checks Spec to be in range

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.3.2
    • Core: I/O
    • None

    Description

      In function
      QDataStream &operator>>(QDataStream &stream, QColor &color)

      { ... color.cspec = QColor::Spec(s); - no other checks are made, cspec can read trash value. Then there is a function bool QColor::isValid() const { return cspec != Invalid; }
      • if cspec has trash values, isValid still returns true. Need either change QColor::isValid() or to make cspec in range when deserializing.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            neurocod Konstantine Kozachuck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes