KPixmapIO bug in ShmSegment
Lubos Lunak
l.lunak at suse.cz
Mon Feb 10 18:05:21 GMT 2003
On Saturday 08 of February 2003 14:53, Karl Vogel wrote:
[snip]
> void KPixmapIO::initXImage(int w, int h)
> {
> if (d->ximage && (w == d->ximage->width) && (h == d->ximage->height))
> return;
>
> createXImage(w, h);
> int size = d->ximage->bytes_per_line * d->ximage->height;
> if (size > d->shmsize)
> createShmSegment(size);
> d->ximage->data = d->shminfo->shmaddr;
> return;
> }
>
> If createShmSegment() is unable attach the shm segment, then it sets m_bShm
> to false. In this case d->shminfo->shmaddr is not valid! So there needs to
> be a test written for this case.
>
>
>
> Bumped onto this via:
> http://bugs.kde.org/show_bug.cgi?id=42441
Do the attached patches help?
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kpixmapio.cpp.patch
Type: text/x-diff
Size: 4921 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030210/1ca5bf44/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kpixmapio.h.patch
Type: text/x-diff
Size: 549 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030210/1ca5bf44/attachment-0001.patch>
More information about the kde-core-devel
mailing list