[krita] [Bug 419111] krita crashes whith looping calls to setPixelData

Halla Rempt bugzilla_noreply at kde.org
Tue Dec 14 11:33:44 GMT 2021


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

Halla Rempt <halla at valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/commit/3ef8bd460
                   |                            |582773fb1a6b6739e798b001798
                   |                            |9c1f
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Halla Rempt <halla at valdyas.org> ---
Git commit 3ef8bd460582773fb1a6b6739e798b0017989c1f by Halla Rempt.
Committed on 14/12/2021 at 11:14.
Pushed by rempt into branch 'master'.

Check whether there is enough data before writing to the paint device

The script in bug 419111 created a byte array that was w * h, instead
of w * h * pixelsize, so that caused a crash, but Node::setPixelData
should check whether there is enough data before starting to write.

M  +8    -3    libs/libkis/Node.cpp
M  +2    -1    libs/libkis/Node.h

https://invent.kde.org/graphics/krita/commit/3ef8bd460582773fb1a6b6739e798b0017989c1f

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



More information about the kde-mac mailing list