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

QVariant floating point conversions may cause UB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • None

    Description

      Discovered while fixing QTBUG-135285:

      Extracting a floating point value out of a QVariant may cause an overflow. For instance, a QVariant containing a double may get extracted by using toFloat. If the source value overflows the range of floats, the behavior is undefined.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes