msg256745 - (view) |
Author: Soren Solari (Soren Solari) |
Date: 2015-12-19 23:31 |
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. |
|
|
msg256842 - (view) |
Author: Martin Morrison (isoschiz) * |
Date: 2015-12-22 16:10 |
The proposed patch does stop requiring the leading <~, but still trims the first two characters off the data set. This will no doubt fail in cases where there is no leading marker. I think it will need to explicitly handle the case where the leading marker is there vs. not. |
|
|
msg258080 - (view) |
Author: Terry J. Reedy (terry.reedy) *  |
Date: 2016-01-12 08:50 |
Soren, for me, the page you link to is impossible to read as it blinks every second or so, something I have never seen before. Perhaps it is trying to forward to the actual reference. As near as I can tell, it just lists about 3 other documents and is not a reference in itself, and for me has no sections. Can you provide a better link, perhaps one that is more direct? |
|
|
msg258268 - (view) |
Author: Swati Jaiswal (curioswati) * |
Date: 2016-01-15 05:48 |
Modified according to Serhiy's last comment. |
|
|
msg259767 - (view) |
Author: Swati Jaiswal (curioswati) * |
Date: 2016-02-07 07:11 |
Is there any requirement for further modification or it can be accepted? |
|
|
msg259802 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2016-02-07 21:04 |
Martin, Antoine, what would you say about this? |
|
|
msg260570 - (view) |
Author: Martin Morrison (isoschiz) * |
Date: 2016-02-20 18:24 |
3.patch looks good to me. |
|
|
msg260781 - (view) |
Author: Roundup Robot (python-dev)  |
Date: 2016-02-24 10:08 |
New changeset ce5bf3290621 by Serhiy Storchaka in branch '3.5': Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True. https://hg.python.org/cpython/rev/ce5bf3290621 New changeset 90d5473b8673 by Serhiy Storchaka in branch 'default': Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True. https://hg.python.org/cpython/rev/90d5473b8673 |
|
|
msg260782 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2016-02-24 10:13 |
Thank you Soren for your report, thank you Swati for your patch, and thank you Martin for your review. |
|
|