[
https://issues.apache.org/jira/browse/PDFBOX-4582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873454#comment-16873454
]
ASF subversion and git services commented on PDFBOX-4582:
---------------------------------------------------------
Commit 1862155 from Tilman Hausherr in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1862155 ]
PDFBOX-4582: check for magic number at the beginning of JPEG content
> PDJpeg should throw IOException if the image isn't a JPEG
> ---------------------------------------------------------
>
> Key: PDFBOX-4582
> URL: https://issues.apache.org/jira/browse/PDFBOX-4582
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel, Rendering
> Affects Versions: 1.8.16
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 1.8.17
>
>
> This code doesn't abort:
> {code}
> new PDJpeg(new PDDocument(), new FileInputStream("image.png"));
> {code}
> This is misleading for newbies, see PDFBOX-4556.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]