Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 98956 invoked from network); 26 Oct 2010 15:52:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 15:52:45 -0000 Received: (qmail 65224 invoked by uid 500); 26 Oct 2010 15:52:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64950 invoked by uid 500); 26 Oct 2010 15:52:43 -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 64942 invoked by uid 99); 26 Oct 2010 15:52:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 15:52:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 15:52:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9QFqM4E016873 for ; Tue, 26 Oct 2010 15:52:22 GMT Message-ID: <25700411.80911288108342165.JavaMail.jira@thor> Date: Tue, 26 Oct 2010 11:52:22 -0400 (EDT) From: "Gunduz Can Topal (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (SANSELAN-47) readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from ByteSources In-Reply-To: <1361618.80261288106180777.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SANSELAN-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gunduz Can Topal updated SANSELAN-47: ------------------------------------- Summary: readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from ByteSources (was: readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from readbytes methods.) > readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from ByteSources > ----------------------------------------------------------------------------------------------------------- > > Key: SANSELAN-47 > URL: https://issues.apache.org/jira/browse/SANSELAN-47 > Project: Commons Sanselan > Issue Type: Improvement > Environment: ubuntu 8.0.4 java 1.6.0_11 > Reporter: Gunduz Can Topal > Attachments: ExifReadOverflow.jpg > > > In case of a corrupt or faulty exif header, we should keep the well formed ones instead of propagating an IOException or an OutofMemory Error to the caller. Attached is a picture taken from an HTC handset, with a faulty exif thumbnail offset, causing an OutOfMemoryException. the patch in SANSELAN-17 turns it into an IOException and the good fields are still being lost. > i.e we should have the following data instead of an exception > Exif metadata: > Root: > Modify Date: '2010:10:05 22:51:03' > Model: 'HTC Desire' > Orientation: 0 > Unknown Tag (0x9209): 65535 > Unknown Tag (0x9208): 0 > Unknown Tag (0x9004): '2010:10:05 22:51:03' > Unknown Tag (0x9207): 65535 > Unknown Tag (0xa403): 65535 > Image Height: 1552 > Image Width: 2592 > Make: 'HTC' > Exif Offset: 222 > Unknown Tag (0xde): null > Exif: (jpegImageData) > Preview Image Start: 252 > Preview Image Length: 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.