Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9
-
None
-
Manjaro Linux
clang 18.1.8
Description
- Build Qt with "-sanitize undefined".
- Use this build of Qt to build tests/auto/qsvgrenderer/tst_qsvgrenderer.cpp.
- Run the test.
On the command line, you can read:PASS : tst_QSvgRenderer::testRenderElement() /home/qtrob/dev/src/qt-dev_07.16-base_imageformats_svg/qtbase/src/gui/painting/qpaintengine_raster.cpp:3604:5: runtime error: call to function gray_raster_reset through pointer to incorrect function type 'void (*)(TRaster_ *, unsigned char *, unsigned long)' qgrayraster.c: note: gray_raster_reset defined here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/qtrob/dev/src/qt-dev_07.16-base_imageformats_svg/qtbase/src/gui/painting/qpaintengine_raster.cpp:3604:5 /home/qtrob/dev/src/qt-dev_07.16-base_imageformats_svg/qtbase/src/gui/painting/qpaintengine_raster.cpp:3634:17: runtime error: call to function gray_raster_render through pointer to incorrect function type 'int (*)(TRaster_ *, QT_FT_Raster_Params_ *)' qgrayraster.c: note: gray_raster_render defined here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/qtrob/dev/src/qt-dev_07.16-base_imageformats_svg/qtbase/src/gui/painting/qpaintengine_raster.cpp:3634:17 PASS : tst_QSvgRenderer::testRenderElementToBounds()