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

QByteArray .toDouble() does not call nulTerminated()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.15.0
    • None
    • All
    • 8

    Description

      All of the QByteArray .toInt() .toLong(), etc methods call the internal function nulTerminated() which ensures that the buffer being processed is terminated with a NUL character.

      .toDouble() doesn't do this – which would not be a problem except for the fact that the numLen argument being passed to qt_asciiToDouble is not being respected inside that function (it may read past the end of buffer).  See related issue: QTBUG-85580.

      As such, I suggest either fixing QTBUG-85580 above or if not, then making .toDouble() operate on an enforced nulTerminated() buffer.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              cculianu calin culianu
              Maurice Kalinowski Maurice Kalinowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes