mirror of
https://github.com/openjdk/jdk7u.git
synced 2025-12-10 20:36:33 -06:00
8273838: Enhanced BMP processing
Reviewed-by: yan
This commit is contained in:
parent
d91d3e7350
commit
030c3690f2
@ -492,7 +492,7 @@ public class BMPImageReader extends ImageReader implements BMPConstants {
|
||||
}
|
||||
|
||||
if (metadata.compression == BI_RGB) {
|
||||
long imageDataSize = (width * height * (bitsPerPixel / 8));
|
||||
long imageDataSize = ((long)width * height * (bitsPerPixel / 8));
|
||||
if (imageDataSize > (bitmapFileSize - bitmapOffset)) {
|
||||
throw new IIOException(I18N.getString("BMPImageReader9"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user