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

QString: parameter checking not done on precision argument to number()

    XMLWordPrintable

Details

    Description

      QString number() suffers performance problems (very large loops) because the precision is signed int whereas subsequent calls are unsigned int. E.g.

      QString::number(double n, char f, int precision)

      If the precision passed in is negative (accidental) the problem will manifest because internally, the number is a very large number as a result of the int / unsigned int conversion

      Attachments

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

        Activity

          People

            dzyubenk Denis Dzyubenko (Inactive)
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes