[konsole] [Bug 463683] New: Null pointer access pasting from empty clipboard

Christopher Yeleighton bugzilla_noreply at kde.org
Sun Jan 1 00:26:28 GMT 2023


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

            Bug ID: 463683
           Summary: Null pointer access pasting from empty clipboard
    Classification: Applications
           Product: konsole
           Version: 22.12.0
          Platform: OpenSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: copy-paste
          Assignee: konsole-devel at kde.org
          Reporter: giecrilj at stegny.2a.pl
  Target Milestone: ---

SUMMARY
When the clipboard is empty (! QClipboard ::mimeData (QClipboard::Clipboard)),
Konsole crashes on paste.


STEPS TO REPRODUCE
1. { konsole --platform vnc; }
2. Connect to the VNC server!
3. Tell Konsole to paste!

OBSERVED RESULT
#0  0x00007ffff6900d6b in QMimeData::hasUrls (this=this at entry=0x0)
    at ../../include/QtCore/../../src/corelib/text/qstring.h:967
967         Q_DECL_CONSTEXPR inline QString(QStringDataPtr dd) : d(dd.ptr) {}
#1  0x00007ffff7e995ff in Konsole::TerminalDisplay::pasteFromClipboard
(this=0x555555973810, 
    appendEnter=<optimized out>)
    at
/usr/src/debug/konsole-22.12.0/src/terminalDisplay/TerminalDisplay.cpp:2360
2360        if (!mimeData->hasUrls()) { // fast path if there are no urls

EXPECTED RESULT
The paste command should be disabled when the clipboard is empty.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20221230
(available in About System)
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list