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

QByteArrayView::toDouble() should not allocate memory

    XMLWordPrintable

Details

    • 5a39173c34 (qt/qtbase/dev) 5a39173c34 (qt/tqtc-qtbase/dev) b33786b378 (qt/qtbase/6.3) b33786b378 (qt/tqtc-qtbase/6.3) b33786b378 (qt/tqtc-qtbase/6.3.0)
    • Team Two Foundation Sprint 52

    Description

      We allocate memory in boostrapped or non-double-conversion builds because we copy the input data to make it NUL-terminated for consumption by sscanf. Apart from being extremely inefficient, making parsing a sequence of doubles from a string quadratic, it also prevents functions from becoming noexcept.

      Attachments

        For Gerrit Dashboard: QTBUG-101178
        # Subject Branch Project Status CR V

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes