From kde-commits Wed Sep 09 11:22:34 2009 From: =?utf-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Wed, 09 Sep 2009 11:22:34 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/dataengines/notifications Message-Id: <1252495354.642249.29156.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125249535918931 SVN commit 1021493 by gateau: Fix off-by-one error which caused the last line of the image to be skipped. M +1 -1 notificationsengine.cpp --- trunk/KDE/kdebase/workspace/plasma/dataengines/notifications/notificationsengine.cpp #1021492:1021493 @@ -114,7 +114,7 @@ ptr = pixels.data(); end = ptr + pixels.length(); for (int y=0; y= end) { + if (ptr + channels * width > end) { kWarning() << "Image data is incomplete. y:" << y << "height:" << height; break; }