Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.2.3, 6.3.1, 6.4.0 Beta2
-
KDE neon User - Plasma 5.25
Description
Using a build of Qt with the UBSAN sanitizer enabled, the attached svg file triggers undefined behaviour due to an integer overflow happening in different places in QRect and QRectF.
The first one happens in QRectF::toAlignedRect while calculating the width and height of the rect. Once this one is fixed, the same issue is detected in the QRect constructors as they are doing the similar mathematical operations that can be found in toAlignedRect.
Google's oss-fuzz found this as oss-fuzz report. They will publish the details 90 days from now, the latest.
The test case provided by QTBUG-103454 can be reused with the input from this report.
Attachments
Issue Links
- relates to
-
QTBUG-111850 [REG 6.2.2 -> 6.2.3] Loading particular svg file takes far too long
-
- Closed
-
-
QTBUG-101698 [REG 6.2.2 -> 6.2.3] Integer overflow when loading svg image
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-105151 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
423469,3 | Fix undefined behavior from math operations in QRectF | dev | qt/qtbase | Status: NEW | 0 | 0 |