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

potential int overflow in qcommonstyle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Won't Do
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Widgets: Styles
    • Labels:
      None

      Description

      In qcommonstyle.cpp, at line 4086 we have:

      uint range = scrollbar->maximum - scrollbar->minimum;

       

      now, both maximum and minimum are signed integers, giving a risk of overflow if provided values are malformed (negative) and give an unreasonably huge range

      encountered that in QtQuickcontrols1 qstyle wrapper where one can set incorrect values from qml and make the app crash

        Attachments

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

          Activity

            People

            Assignee:
            notmart Marco Martin
            Reporter:
            notmart Marco Martin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes