[ 
https://issues.apache.org/jira/browse/PDFBOX-4622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Rebert updated PDFBOX-4622:
--------------------------------
    Description: 
{{TTFParser.parse}} can lead to various unchecked exceptions when parsing 
malformed inputs.

*Steps to repro*
 # Create & compile 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 and extract them.
 * For each input, run {{cat <input> | java -cp Main}} to reproduce the 
exceptions.

*Stacktraces*

<About to add them>

  was:
{{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.


> 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
>            Priority: Minor
>
> {{TTFParser.parse}} can lead to various unchecked exceptions when parsing 
> malformed inputs.
> *Steps to repro*
>  # Create & compile 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 and extract them.
>  * For each input, run {{cat <input> | java -cp Main}} to reproduce the 
> exceptions.
> *Stacktraces*
> <About to add them>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to