pyPdf icon indicating copy to clipboard operation
pyPdf copied to clipboard

generic.NameObject causes infinite loops

Open rajeshdhawan opened this issue 14 years ago • 1 comments

I have a PDF document that seems to get stuck in an infinite loop in the "while True" clause of generic.NameObject.

I added the empty string "" to the tuple of NameObject.delimiterCharacters to fix this issue. Don't know if it's the right solution, but it seems to break the infinite loop perfectly.

rajeshdhawan avatar Feb 07 '11 21:02 rajeshdhawan

I can confirm this issue, and that the delimiter fix mentioned here works around the issue while passing my application tests. The greater issue is the use of while True: ... blocks throughout the code, instead of breaking after some limit with a raised exception.

rduplain avatar Feb 17 '12 06:02 rduplain