[
https://issues.apache.org/jira/browse/PDFBOX-6327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18148040#comment-18148040
]
ASF subversion and git services commented on PDFBOX-6327:
---------------------------------------------------------
Commit 1940536 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1940536 ]
PDFBOX-6327: add/update zero byte test
> Improve error path on CMapStrings.getMapping()
> ----------------------------------------------
>
> Key: PDFBOX-6327
> URL: https://issues.apache.org/jira/browse/PDFBOX-6327
> Project: PDFBox
> Issue Type: Sub-task
> Components: FontBox
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>
> CMapStrings.getMapping() has different error paths for empty input and input
> > 2 bytes. Change it so that it returns null on ALL errors. (It might be more
> useful to return an empty string, considering that C.A.R. Hoare calls null
> pointers a mistake)
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]