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

Error occurred while parsing indirect object #76

Open
randubin opened this issue May 26, 2018 · 0 comments
Open

Error occurred while parsing indirect object #76

randubin opened this issue May 26, 2018 · 0 comments

Comments

@randubin
Copy link

I am receiving this error:
Error: An error has occurred while parsing an indirect object!!

The error log:
, in parse

ret = body.updateObjects()

peepdf2/PDFCore.py", line 4283, in updateObjects

object.resolveReferences()

File "PDFCore.py", line 3243, in resolveReferences

ret = PDFParser.readObject(objectsSection[offset:])

TypeError: slice indices must be integers or None or have an index method

Traceback (most recent call last):

File "peepdf.py", line 494, in

ret, pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode, options.isManualAnalysis)

File "PDFCore.py", line 7064, in parse

ret = body.updateObjects()

File "PDFCore.py", line 4283, in updateObjects

object.resolveReferences()

File "PDFCore.py", line 3243, in resolveReferences

ret = PDFParser.readObject(objectsSection[offset:])

TypeError: slice indices must be integers or None or have an index method

This is the numbers array:
<type 'list'>: ['14', '0', '15', '165', '17', '332']
If i change it to int I get:
PDFParser.readObject(objectsSection[offset:])
{TypeError}unbound method readObject() must be called with PDFParser instance as first argument (got str instance instead)

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