commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <>
Subject [jira] [Comment Edited] (IMAGING-162) BMP files with negative bitmap height are not supported
Date Thu, 19 Feb 2015 06:52:12 GMT


Benedikt Ritter edited comment on IMAGING-162 at 2/19/15 6:51 AM:

Setting this to review patch. Please create a PR at github. This will make reviewing easier.

was (Author: britter):
Setting this to review patch. I'll have a look tonight.

> BMP files with negative bitmap height are not supported
> -------------------------------------------------------
>                 Key: IMAGING-162
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: BMP
>    Affects Versions: 1.0
>            Reporter: Myroslav Golub
>              Labels: github
>             Fix For: Review Patch
>         Attachments: monochrome-negative-height.bmp
> 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

View raw message