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 1352B9CE7 for ; Tue, 20 Dec 2011 10:45:53 +0000 (UTC) Received: (qmail 64893 invoked by uid 500); 20 Dec 2011 10:45:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64797 invoked by uid 500); 20 Dec 2011 10:45:52 -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 64789 invoked by uid 99); 20 Dec 2011 10:45:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 10:45:52 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 10:45:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ABB3C11D322 for ; Tue, 20 Dec 2011 10:45:30 +0000 (UTC) Date: Tue, 20 Dec 2011 10:45:30 +0000 (UTC) From: "Emmanuel Bourg (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <1393434500.30209.1324377930704.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1361618.80261288106180777.JavaMail.jira@thor> Subject: [jira] [Updated] (SANSELAN-47) readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from ByteSource implementations 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 ] Emmanuel Bourg updated SANSELAN-47: ----------------------------------- Fix Version/s: 1.0 > readDirectory method in TiffReader doesn't gracefully handle exceptions that can be thrown from ByteSource implementations > -------------------------------------------------------------------------------------------------------------------------- > > 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 > Fix For: 1.0 > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira