Bug 509526 - calligra-25.08.1/libs/vectorimage/libwmf/WmfPainterBackend.cpp:70: use after delete ??
Summary: calligra-25.08.1/libs/vectorimage/libwmf/WmfPainterBackend.cpp:70: use after ...
Status: REPORTED
Alias: None
Product: calligracommon
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-15 16:38 UTC by dcb314
Modified: 2025-09-15 16:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dcb314 2025-09-15 16:38:08 UTC
Static analyser cppcheck says:

calligra-25.08.1/libs/vectorimage/libwmf/WmfPainterBackend.cpp:70:15: error: Dereferencing 'mPainter' after it is deallocated / released [deallocuse]

Source code is

    if (mPainter && mIsInternalPainter)
        delete mPainter;

    mTarget = mPainter->device();

Suggest code rework.