[
https://issues.apache.org/jira/browse/PDFBOX-6327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-6327:
------------------------------------
Description: 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) (was: CMapStrings.getMapping() has different
error paths for empty input and input > 2 bytes. Change it so that it returns
null on all errors.)
> 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
>
> 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]