-
Bug
-
Resolution: Fixed
-
P4
-
6, 9
-
b127
-
x86
-
windows_xp
FULL PRODUCT VERSION :
mustang early release
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In com.sun.imageio.plugins.bmp.BMPImageReader.decodeRLE is this rounding code
// Whenever end pixels can fit into odd number of bytes,
// an extra padding byte will be present, so skip that.
if ((((int)Math.ceil(end/2)) & 1) ==1 ) {
count++;
notice that end/2 is an int so ceil doesn't make any sense.
Perhaps you want end/2.0
REPRODUCIBILITY :
This bug can be reproduced always.
mustang early release
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In com.sun.imageio.plugins.bmp.BMPImageReader.decodeRLE is this rounding code
// Whenever end pixels can fit into odd number of bytes,
// an extra padding byte will be present, so skip that.
if ((((int)Math.ceil(end/2)) & 1) ==1 ) {
count++;
notice that end/2 is an int so ceil doesn't make any sense.
Perhaps you want end/2.0
REPRODUCIBILITY :
This bug can be reproduced always.