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

Halla Rempt bugzilla_noreply at kde.org
Tue Dec 14 11:34:05 GMT 2021


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

Halla Rempt <halla at valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/3ef8bd460 |hics/krita/commit/68d4ec3e8
                   |582773fb1a6b6739e798b001798 |6bc283506626b6a21d542cb4c35
                   |9c1f                        |b98d

--- Comment #3 from Halla Rempt <halla at valdyas.org> ---
Git commit 68d4ec3e86bc283506626b6a21d542cb4c35b98d by Halla Rempt.
Committed on 14/12/2021 at 11:33.
Pushed by rempt into branch 'krita/5.0'.

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.
(cherry picked from commit 3ef8bd460582773fb1a6b6739e798b0017989c1f)

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

https://invent.kde.org/graphics/krita/commit/68d4ec3e86bc283506626b6a21d542cb4c35b98d

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



More information about the kde-mac mailing list