pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Rebert (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PDFBOX-4622) Various exceptions in TTFParser.parse
Date Mon, 05 Aug 2019 20:01:00 GMT
Alex Rebert created PDFBOX-4622:
-----------------------------------

             Summary: Various exceptions in TTFParser.parse
                 Key: PDFBOX-4622
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4622
             Project: PDFBox
          Issue Type: Bug
          Components: FontBox
    Affects Versions: 2.0.16
         Environment: openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

MacOS Mojave
            Reporter: Alex Rebert


{{TTFParser.parse}} can lead to various unchecked exceptions when parsing malformed inputs

*Steps to repro*
 # Create Main.java: 
{code:java}
import org.apache.fontbox.ttf.TTFParser; class Main { public static void main(String[] args)
throws Throwable { (new TTFParser()).parse(System.in); } }{code}

 # 

 
 * Download the [malformed inputs|https://github.com/drewnoakes/metadata-extractor/files/3432593/metadata-extractor-malformed-inputs.zip] and
extract them.
 * 
 * For each input, run {{java -ea -cp metadata-extractor-2.12.0.jar com.drew.imaging.ImageMetadataReader
<input>}} to reproduce the exceptions.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message