Remove pointless check in QImageData::create()
"height <= 0" already verified above. Change-Id: Ia2ab90a4cd5533f7b5101686876c2c2cc3e275ac Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
fcc6b6daff
commit
1394962ceb
|
|
@ -797,7 +797,6 @@ QImageData *QImageData::create(uchar *data, int width, int height, int bpl, QIm
|
|||
|| INT_MAX/sizeof(uchar *) < uint(height)
|
||||
|| INT_MAX/uint(depth) < uint(width)
|
||||
|| bpl <= 0
|
||||
|| height <= 0
|
||||
|| bpl < min_bytes_per_line
|
||||
|| INT_MAX/uint(bpl) < uint(height))
|
||||
return d; // invalid parameter(s)
|
||||
|
|
|
|||
Loading…
Reference in New Issue