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

potential int overflow in qcommonstyle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.12.3
    • Widgets: Styles
    • 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

            notmart Marco Martin
            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