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

Crash on Integer Overflow in QCheckedInt Operator+ (ASSERT in qcheckedint_impl.h:69)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.10.0 Beta2
    • Core: Threads
    • None
    • macOS

    Description

      MacOS 15.4.1

      Qt Creator 17.0.0

      Qt 6.10 beta 2

      Steps to reproduce:

      1. Open Qt Creator's example tab and select https://doc.qt.io/qt-6/qtcore-threads-mandelbrot-example.html example from Qt Core.
      2. Run the application. 
      3. Maximize the windows then zoom in and out several times using scroll (I use MX Master mouse with infitnite scroll which makes it easy to reproduce).

      Expected: I should be able to zoom in/out without any problems. 

      Actual: The app crashes. 

      ASSERT failure in QCheckedInt<Int, Impl, FailureReportPolicy> QtPrivate::QCheckedIntegers::operator+(QCheckedInt<Int, Impl, FailureReportPolicy>, QCheckedInt<Int, Impl, FailureReportPolicy>): "Overflow in operator+", file /Users/lukaszkosiorowski/Qt/6.10.0/macos/lib/QtCore.framework/Headers/qcheckedint_impl.h, line 69 

      NOTE: The app does not crash on Qt 6.9.2

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change