You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/06/26 15:56:00 UTC

[jira] [Commented] (PDFBOX-4582) PDJpeg should throw IOException if the image isn't a JPEG

    [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org