MozillaSecurity / MozillaSecurity/fuzzfetch
Traceback due to incomplete download
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 48
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/user/code/fuzzfetch/src/fuzzfetch/__main__.py", line 9, in <module>
Fetcher.main()
File "/home/user/code/fuzzfetch/src/fuzzfetch/fetch.py", line 680, in main
obj.extract_build(out_tmp, tests=extract_args['tests'], full_symbols=extract_args['full_symbols'])
File "/home/user/code/fuzzfetch/src/fuzzfetch/fetch.py", line 377, in extract_build
self.extract_tar(path)
File "/home/user/code/fuzzfetch/src/fuzzfetch/fetch.py", line 513, in extract_tar
for member in tar.getmembers():
File "/usr/lib/python2.7/tarfile.py", line 1836, in getmembers
self._load() # all members, we first have to
File "/usr/lib/python2.7/tarfile.py", line 2417, in _load
tarinfo = self.next()
File "/usr/lib/python2.7/tarfile.py", line 2348, in next
self.fileobj.seek(self.offset - 1)
EOFError: compressed file ended before the logical end-of-stream was detected
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/fuzzfetch/fetch.py, following extract_build into extract_tar and the tarfile.getmembers() call shown in the traceback. Reproduce the failure with an incomplete archive and determine the expected handling for the EOFError; the issue is done when this incomplete-download case is handled without the reported unhandled traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100