Fix race condition in KisMergeWalker::startTripWithMask
ClosedPublic

Authored by gladhorn on Nov 16 2016, 4:21 PM.

Details

Summary

The parent pointer could become null right after the check.
Making it safe is easy, just hold on to the pointer for the duration
of the function.

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gladhorn updated this revision to Diff 8229.Nov 16 2016, 4:21 PM
gladhorn retitled this revision from to Fix race condition in KisMergeWalker::startTripWithMask.
gladhorn updated this object.
gladhorn edited the test plan for this revision. (Show Details)
gladhorn added a reviewer: Krita.
dkazakov accepted this revision.Nov 16 2016, 4:22 PM
dkazakov added a reviewer: dkazakov.
This revision is now accepted and ready to land.Nov 16 2016, 4:22 PM
This revision was automatically updated to reflect the committed changes.