Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
dev
-
Ubuntu 22.04 LTS
clang 14.0.0
-
69bed6cd3 (dev), bd6a866fb (dev), 4596aa7bf (6.7)
Description
- Have a build of Qt configured with "-sanitize undefined".
- Build the attached project with that.
- Run the resulting binary with the attached svg file as parameter.
The sanitizer will show a division by zero:/home/qtrob/dev/src/qt-dev_12.21-base_imageformats_svg/qtbase/src/gui/painting/qdrawhelper.cpp:3416:18: runtime error: division by zero SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/qtrob/dev/src/qt-dev_12.21-base_imageformats_svg/qtbase/src/gui/painting/qdrawhelper.cpp:3416:18 in
Google's oss-fuzz found this as issue 63780. Their report is public. It went to "Verified" state in November but I can still reproduce the issue with Qt's latest sources.
Attachments
Issue Links
- relates to
-
QTBUG-130992 Crash when rendering radialGradient
- Closed
For Gerrit Dashboard: QTBUG-120332 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
528253,6 | QRadialGradient: Fix undefined behavior | dev | qt/qtbase | Status: MERGED | +2 | 0 |
528480,2 | fuzzing: Add input file which triggered division by zero | dev | qt/qtqa | Status: MERGED | +2 | 0 |
528779,2 | QRadialGradient: Fix undefined behavior | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |