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

ValueError: read length must be non-negative or -1 #33

Open
vadimszzz opened this issue Jan 25, 2022 · 0 comments
Open

ValueError: read length must be non-negative or -1 #33

vadimszzz opened this issue Jan 25, 2022 · 0 comments

Comments

@vadimszzz
Copy link

vadimszzz commented Jan 25, 2022

Traceback (most recent call last):
  File "/Users/x/Downloads/Projects/ios-apps-research-2021/exynex/cli/analyze.py", line 291, in run
    app_executable_macho = macholibre.parse(f"{app_dir}/{app_executable}")
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/__init__.py", line 45, in parse
    return parser.parse(certs=certs)
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1695, in parse
    self.parse_file()
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1685, in parse_file
    self.parse_macho(0, self.__output['size'])
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 1602, in parse_macho
    self.parse_lcs(offset, size, nlcs, slcs)
  File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/site-packages/macholibre/parser.py", line 789, in parse_lcs
    self.__file.read(cmd_size - 8)  # skip load command
ValueError: read length must be non-negative or -1
@vadimszzz vadimszzz mentioned this issue Jan 25, 2022
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