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

little bug in the ASCII85Decode class #25

Open
Eladio opened this issue Jun 17, 2011 · 0 comments
Open

little bug in the ASCII85Decode class #25

Eladio opened this issue Jun 17, 2011 · 0 comments

Comments

@Eladio
Copy link

Eladio commented Jun 17, 2011

Hi! I'm Biszak Előd, I'm a hungarian developer, I've been using pyPdf and realized there's a bug int the ASCII85Decode class' decode function. When c=='z' the variable x doesn't increment, so the function remains in an infinite loop.

elif c == 'z':
    assert len(group) == 0
    retval += '\x00\x00\x00\x00'
    continue

should be:

elif c == 'z':
    assert len(group) == 0
    retval += '\x00\x00\x00\x00'
    x += 1
    continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant