-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ASCII85 decoding in a specific case #600
Conversation
It will be complicated to create a PDF whose the gzencode then ASCII85-encoding has the problematic ending, but I can add a test similarly to the existing ones whose the end of the decoded string is (hex) |
@Seb35 thank you for this pull request.
That is sufficient, if it demonstrates the change. Providing a whole PDF is not required, most of the time it is only a bad trade in comparison to a tailored unit test. |
@Seb35 what is the status here? |
Sorry, I didn’t take the time to work on it, I do it soon (i.e. add a test). |
I added 3 tests:
PS: I was a bit surprised not to find PHPUnit in the root composer.json, but found the dev doc which is very clear, and I have to say I like this way of separating dev tools from ordinary dependencies. |
Good work! Coding style rules changed with latest release of PHP-CS-Fixer. It should be sufficient to jut run it once to solve those errors (e.g. by using
Yeah, it was a pain in the ass to handle PHP version differences as well as drag PHPUnit along. Separate dev tools from library did us a good service ever since. |
I submitted #602 for that and will rebase this PR just after, to separate the two tasks. |
When the start or the end of the string is "<~>". In this case we must be sure of the exact position of this substring: e.g. when there is no "<~" header but "<~>" at the end, we must not remove the first two characters even if "<~" is found somewhere. Issue: smalot#599
Sorry for not answering before on the other PR, thanks for finalising it. I’ve done a simple rebase (no conflicts) on this one. |
When the start or the end of the string is
<~>
. In this case we must be sure of the exact position of this substring: e.g. when there is no<~
header but<~>
at the end, we must not remove the first two characters even if<~
is found somewhere.Issue: #599