Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E7CBD3EE for ; Thu, 21 Jun 2012 05:34:46 +0000 (UTC) Received: (qmail 76740 invoked by uid 500); 21 Jun 2012 05:34:46 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 76270 invoked by uid 500); 21 Jun 2012 05:34:40 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 76223 invoked by uid 99); 21 Jun 2012 05:34:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 05:34:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 05:34:36 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 2EFD9507D; Thu, 21 Jun 2012 05:34:16 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 53446] New: [PATCH] Fix some problems extracting PNGs Date: Thu, 21 Jun 2012 05:34:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POI Overall X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luke@nuix.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: priority bug_id assigned_to short_desc bug_severity classification reporter rep_platform bug_status version component product Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53446 Priority: P2 Bug ID: 53446 Assignee: dev@poi.apache.org Summary: [PATCH] Fix some problems extracting PNGs Severity: normal Classification: Unclassified Reporter: luke@nuix.com Hardware: PC Status: NEW Version: 3.9-dev Component: POI Overall Product: POI Created attachment 28974 --> https://issues.apache.org/bugzilla/attachment.cgi?id=28974&action=edit The patch to fix extraction problems. HSLF had some code to chop off 16 bytes of "Mac data" from some PNGs; I found samples of the same thing in Word and Excel so I've applied a similar fix to those formats too. Also fixed HSLF to look for the PNG header instead of using ImageIO to load up the whole image. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org