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

potential int overflow in qcommonstyle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.3
    • Widgets: Styles
    • None

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes