-
Notifications
You must be signed in to change notification settings - Fork 326
Update frida-drcov.py #152
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
base: develop
Are you sure you want to change the base?
Conversation
frida-drcov.py modules fix
|
Is there an issue that this is addressing? The original method seems to work for myself without fail |
|
For me the resulting maps does not contains the proper values and cause it to fail, I think the alternative I'm suggesting is better overall. The preceding code fails to add the fields to the map: It would make sense to move this logic outside of the javascript code for frida. I am on NixOS 24.11.714925.f44bd8ca21e0 (Vicuna) and running the default frida-drcov.py with a process of choice results in the following error, and this on any process. |
|
Ah I see - testing with frida-16.5.1 it works fine but once I update to Frida 16.7.1 it breaks; one of the more recent frida updates has changed something and is breaking coverage collection; I'll take a look at the pull request but in the meantime that will hopefully fix others problems. |
|
@gaasedelen Please merge that , there is no id in module |
|
@datalocaltmp Even In 16.1.12 I don't see |
removed function make_maps
The module class in Frida does not have an id - you're correct - if you read the original @algoatson I'm slightly worried that the extensive changes brough in with Frida 17 may have broken more of this; I'll have a look this evening and report back. Wondering if we should perhaps move this coverage gathering tool out into it's own repo as this portion of Lighthouse seems to be unmaintained at this point. |
Process.enumerateModulesSync was dropped from frida 17, change to Process.enumerateModulesSync which seems to work fine.
frida-drcov.py modules fix - invalid index and end fields for modules.