commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IMAGING-162) BMP files with negative bitmap height are not suported
Date Mon, 02 Feb 2015 16:53:36 GMT

     [ https://issues.apache.org/jira/browse/IMAGING-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter updated IMAGING-162:
------------------------------------
    Fix Version/s: Patch Needed

> BMP files with negative bitmap height are not suported
> ------------------------------------------------------
>
>                 Key: IMAGING-162
>                 URL: https://issues.apache.org/jira/browse/IMAGING-162
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: BMP
>    Affects Versions: 1.0
>            Reporter: Myroslav Golub
>             Fix For: Patch Needed
>
>
> The BMP format allows for negative values of the height field in the header. This means
that the image lines are stored top-down, not bottom-up as usual (i. e. the first pixel in
the pixel array would be in the top left corner of the image, not in the bottom left as usual).
However, when a negative-height bitmap is passed, the BmpImageParser attempts to create an
array of negative length, and a NegativeArraySizeException ensues.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message