Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
frida-ls-devicescrashed with a rawValueErrortraceback when nodevices are attached (e.g. no USB device and no remote endpoint):
Fix
_print_devicesinfrida_tools/lsd.pyno longer builds aThreadPoolExecutorwithmax_workers=0: an empty device list skipsthe OS-query fan-out and goes straight to the existing table rendering,
which prints the header and exits 0:
Seven added lines; the non-empty path is untouched.
Tests
TestLSD::test_list_no_devices_prints_headertotests/test_lsd.py(same mock style as the existing test):enumerate_devicesreturns[], asserts exit 0 and the exactheader output.
ValueError: max_workers must be greater than 0propagates out of
lsd.main().python -m pytest tests/test_lsd.py tests/test_ps.py -qin a venvwith the repo-pinned deps (
websockets>=13,<14, frida 17.26,prompt-toolkit, pygments, colorama) — 6 passed. (The machine's
system env carries websockets 10.4, which predates the
websockets.asynciomodule the repo requires, so the venv was usedfor verification; no repo dependency was changed.)