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 2016/04/05 20:11:25 UTC

[jira] [Commented] (PDFBOX-3308) Missing endOfName chars

    [ https://issues.apache.org/jira/browse/PDFBOX-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15226805#comment-15226805 ] 

ASF subversion and git services commented on PDFBOX-3308:
---------------------------------------------------------

Commit 1737864 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1737864 ]

PDFBOX-3308: add NUL and FF as name delimiters, as suggested by Andrea Vacondio

> Missing endOfName chars
> -----------------------
>
>                 Key: PDFBOX-3308
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3308
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Andrea Vacondio
>
> I came across a document that was using a null char 0x00 as array items separator and it wasn't handled correctly. According to chapter 7.2.2 ??The White-space characters shown in Table 1 separate syntactic constructs such as names and numbers from each other.?? and Table 1 contains NUL, HT, LF, FF, CR, SP. 
> BaseParser::isEndOfName is missing NUL and FF, as a result, if you parse the array  
> {code}[/Indexed /DeviceRGB 255 <000000>]{code}
> where /DeviceRGB and 255 are separated by NUL, and you write it back you get
> {code}[/Indexed /DeviceRGB#00255 <000000>]{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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