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

            Bug ID: 494799
           Summary: kcalc unresponsive after invalid input
    Classification: Applications
           Product: kcalc
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: evan.te...@gmail.com
          Reporter: seb...@redhat.com
                CC: gabriel.barrantes....@outlook.com
  Target Milestone: ---

SUMMARY
Using kcalc in the Numeral System Mode / Hex view and adding invalid characters
into the input field leads to an unresponsive app.
STEPS TO REPRODUCE
1. kcalc Numeral System Mode
2. enter invalid input like "id_aa64pfr0"
3. trying to delete that input

OBSERVED RESULT
kcalc becomes unresponsive

EXPECTED RESULT
not become unresponsive, display nan or smth

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
playing around with inputs, looks like "i" is enough to trigger this maybe that
gets evaluated as a symbol

unhelpful stack:
#0  CalcEngine::insert_KNumber_Token_In_Stack_(KCalcToken const&) [clone
.isra.0] (this=this@entry=0x5555557ae5d8, token=<optimized out>)
    at /usr/src/debug/kcalc-24.08.2-1.fc40.x86_64/kcalc_core.cpp:352
#1  0x000055555559f9f9 in CalcEngine::calculate (this=0x5555557ae5d8,
tokenBuffer=..., errorIndex=@0x5555557ae4a0: 0)
    at /usr/src/debug/kcalc-24.08.2-1.fc40.x86_64/kcalc_core.cpp:134
#2  0x00005555555c4384 in KCalculator::commit_Input_() [clone .isra.0]
(this=0x5555557ae0f0)
    at /usr/src/debug/kcalc-24.08.2-1.fc40.x86_64/kcalc.cpp:2391
#3  0x000055555558e2e6 in KCalculator::slotInputChanged (this=0x5555557ae0f0)
at /usr/src/debug/kcalc-24.08.2-1.fc40.x86_64/kcalc.cpp:1414
#4  0x00007ffff5ffc8f2 in void doActivate<false>(QObject*, int, void**) () at
/lib64/libQt6Core.so.6
#5  0x00007ffff752c9d9 in QLineEdit::textChanged(QString const&) () at
/lib64/libQt6Widgets.so.6
#6  0x00007ffff5ffc8f2 in void doActivate<false>(QObject*, int, void**) () at
/lib64/libQt6Core.so.6
#7  0x00007ffff7538bec in QWidgetLineControl::textChanged(QString const&) () at
/lib64/libQt6Widgets.so.6
#8  0x00007ffff753be7f in QWidgetLineControl::finishChange(int, bool, bool) ()
at /lib64/libQt6Widgets.so.6
#9  0x00007ffff753f26a in QWidgetLineControl::processKeyEvent(QKeyEvent*) () at
/lib64/libQt6Widgets.so.6
#10 0x00007ffff752c94f in QLineEdit::keyPressEvent(QKeyEvent*) () at
/lib64/libQt6Widgets.so.6

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

Reply via email to