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

            Bug ID: 439491
           Summary: SyntaxHighlighter::SyntaxHighlighter(QObject*) should
                    NOT use a default nullptr
           Product: frameworks-syntax-highlighting
           Version: unspecified
          Platform: Compiled Sources
                OS: All
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: framework
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: rjvber...@gmail.com
  Target Milestone: ---

SUMMARY
SyntaxHighlighter::SyntaxHighlighter(QObject*) hands off its argument to
QSyntaxHighlighter; this function does NOT check if the parent it receives that
way is a valid pointer. Code should thus be obliged to pass a parent pointer
explicitly - QSyntaxHighlighter does this too (no default value).

STEPS TO REPRODUCE
1. Create a KSyntaxHighlighting instance by, for instance,
`KSyntaxHighlighting::SyntaxHighlighter syntaxHighlighter;`

OBSERVED RESULT
A crash will result in QSyntaxHighlighter::QSyntaxHighligher().

EXPECTED RESULT


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

ADDITIONAL INFORMATION

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

Reply via email to