Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EFFE1785A for ; Sun, 22 Feb 2015 19:21:13 +0000 (UTC) Received: (qmail 66920 invoked by uid 500); 22 Feb 2015 19:21:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 66501 invoked by uid 500); 22 Feb 2015 19:21:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 66213 invoked by uid 99); 22 Feb 2015 19:21:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2015 19:21:11 +0000 Date: Sun, 22 Feb 2015 19:21:11 +0000 (UTC) From: =?utf-8?Q?Michael_Gro=C3=9F_=28JIRA=29?= To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IMAGING-162) BMP files with negative bitmap height are not supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IMAGING-162?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D143= 32319#comment-14332319 ]=20 Michael Gro=C3=9F commented on IMAGING-162: -------------------------------------- [~mgolub] Thank you - overread this sentence. Then my proposal is complete. > BMP files with negative bitmap height are not supported > ------------------------------------------------------- > > 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 > Labels: github > Fix For: Review Patch > > Attachments: monochrome-negative-height.bmp > > > The BMP format allows for negative values of the height field in the head= er. This means that the image lines are stored top-down, not bottom-up as u= sual (i. e. the first pixel in the pixel array would be in the top left cor= ner of the image, not in the bottom left as usual). However, when a negativ= e-height bitmap is passed, the BmpImageParser attempts to create an array o= f negative length, and a NegativeArraySizeException ensues. -- This message was sent by Atlassian JIRA (v6.3.4#6332)