View | Details | Raw Unified | Return to bug 58356
Collapse All | Expand All

(-)qimage.cpp (+4 lines)
Lines 4838-4843 bool read_dib( QDataStream& s, int offse Link Here
4838
			    p = line[h-y-1] + x;
4838
			    p = line[h-y-1] + x;
4839
			    break;
4839
			    break;
4840
			default:		// absolute mode
4840
			default:		// absolute mode
4841
			    if ( b > (bpl - x) )
4842
			        return FALSE;
4841
			    if ( d->readBlock( (char *)p, b ) != b )
4843
			    if ( d->readBlock( (char *)p, b ) != b )
4842
				return FALSE;
4844
				return FALSE;
4843
			    if ( (b & 1) == 1 )
4845
			    if ( (b & 1) == 1 )
Lines 4846-4851 bool read_dib( QDataStream& s, int offse Link Here
4846
			    p += b;
4848
			    p += b;
4847
		    }
4849
		    }
4848
		} else {			// encoded mode
4850
		} else {			// encoded mode
4851
		    if ( b > (bpl - x) )
4852
		        return FALSE;
4849
		    memset( p, d->getch(), b ); // repeat pixel
4853
		    memset( p, d->getch(), b ); // repeat pixel
4850
		    x += b;
4854
		    x += b;
4851
		    p += b;
4855
		    p += b;

Return to bug 58356