https://bugs.kde.org/show_bug.cgi?id=451903

            Bug ID: 451903
           Summary: UBSan hits on a signed integer left-shift in
                    KisFixedPoint
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: a...@amyspark.me
  Target Milestone: ---

Created attachment 147730
  --> https://bugs.kde.org/attachment.cgi?id=147730&action=edit
Backtrace of breakpoint

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Running Krita with UBSan on the xsimd preparation branch yields a lot of UBSan
errors. The only one I could not fix is:

/home/amalia/krita/src/libs/image/kis_fixed_point_maths.h:22:20: runtime error:
left shift of negative value -2
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
/home/amalia/krita/src/libs/image/kis_fixed_point_maths.h:22:20 in 

STEPS TO REPRODUCE
1.  Build Krita with `ECM_ENABLE_SANITIZER` set in CMake to `undefined`.
2.  Run Krita and start painting.

OBSERVED RESULT
None, just the UBSan report.

EXPECTED RESULT
None.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
d47a33aa9c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to