openbsd-ports/x11/qt3/patches/patch-src_kernel_qfontengine_x11_cpp
espie f1735615f6 Add the security patches from qt 3.3.7
we'll update to qt 3.3.7 after the immodule patch has been merged, which
should hopefully happen in the middle of november....
2006-10-24 22:39:36 +00:00

14 lines
704 B
Plaintext

$OpenBSD: patch-src_kernel_qfontengine_x11_cpp,v 1.1 2006/10/24 22:39:36 espie Exp $
--- src/kernel/qfontengine_x11.cpp.orig Fri Sep 2 14:43:04 2005
+++ src/kernel/qfontengine_x11.cpp Tue Oct 24 22:30:51 2006
@@ -171,7 +171,8 @@ static void drawScaled(int x, int y, con
QRect br = xmat.mapRect(QRect(x, y - si->ascent, w, h));
QRect br2 = br & pdevRect;
- if (br2.width() <= 0 || br2.height() <= 0)
+ if (br2.width() <= 0 || br2.height() <= 0
+ || br2.width() >= 32768 || br2.height() >= 32768)
return;
QWMatrix mat = QPixmap::trueMatrix( xmat, w, h );
QBitmap wx_bm = ::transform(dpy, bm, br2.x() - br.x(), br2.y() - br.y(), br2.width(), br2.height(), mat);