Skip to content
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

_cmap.py: avoid IndexError in parse_to_unicode #1110

Merged
merged 1 commit into from
Jul 14, 2022

Commits on Jul 14, 2022

  1. _cmap.py: avoid IndexError in parse_to_unicode

    The code within the if block assumes that lst has index 0 and index 1.
    So the predicate should depend on lst having at least two elements.
    
    This resolves the error I described at
    py-pdf#1091 (comment)
    (I'm not sure that it would resolve the other issue raised by
    @MartinThoma)
    dkg committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    b6a8fb5 View commit details
    Browse the repository at this point in the history