Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 151838 | Differences between
and this patch

Collapse All | Expand All

(-)src/kernel/qpixmap_x11.cpp.josh (+11 lines)
Lines 1758-1763 QPixmap QPixmap::xForm( const QWMatrix & Link Here
1758
	dbpl = ((w*bpp+31)/32)*4;
1758
	dbpl = ((w*bpp+31)/32)*4;
1759
    dbytes = dbpl*h;
1759
    dbytes = dbpl*h;
1760
1760
1761
    if (dbytes != (long long) dbpl*h) { // Integer overflow detection
1762
        QPixmap pm;
1763
        pm.data->bitmap = data->bitmap;
1764
        return pm;
1765
    }
1766
1761
#if defined(QT_MITSHM)
1767
#if defined(QT_MITSHM)
1762
    if ( use_mitshm ) {
1768
    if ( use_mitshm ) {
1763
	dptr = (uchar *)xshmimg->data;
1769
	dptr = (uchar *)xshmimg->data;
Lines 1867-1872 QPixmap QPixmap::xForm( const QWMatrix & Link Here
1867
		sptr = (uchar *) axi->data;
1873
		sptr = (uchar *) axi->data;
1868
		bpp  = axi->bits_per_pixel;
1874
		bpp  = axi->bits_per_pixel;
1869
		dbytes = dbpl * h;
1875
		dbytes = dbpl * h;
1876
                if (dbytes != (long long) dbpl*h) { // Integer overflow detection
1877
                    QPixmap pm;
1878
                    pm.data->bitmap = data->bitmap;
1879
                    return pm;
1880
                }
1870
		dptr = (uchar *) malloc(dbytes);
1881
		dptr = (uchar *) malloc(dbytes);
1871
		Q_CHECK_PTR( dptr );
1882
		Q_CHECK_PTR( dptr );
1872
		memset(dptr, 0, dbytes);
1883
		memset(dptr, 0, dbytes);

Return to bug 151838