[New-bugs-announce] [issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

Soren Solari report at bugs.python.org
Sat Dec 19 18:31:53 EST 2015


New submission from Soren Solari:

According to the PDF Spec http://www.adobe.com/devnet/pdf/pdf_reference.html section 7.4.3,
The ascii85decode function only utilizes ~> as an EOD 2byte character, there is no mention of leading <~.   Therefore using the base64.a85decode(data, adobe=True) does not work on valid data coming from a pdf because that data may not have a leading <~.

Solution: do not require leading <~ for adobe=True.

----------
messages: 256745
nosy: Soren Solari
priority: normal
severity: normal
status: open
title: base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25913>
_______________________________________


More information about the New-bugs-announce mailing list