psi-func / frida-executor

Edge coverage provider backed by frida-gum
MIT License
0 stars 0 forks source link

calculation edge coverage source code #1

Closed makerdd closed 1 year ago

makerdd commented 1 year ago

Thank you very much for your open source project, it is very useful for me. I have a question about code coverage, is coverage calculation implemented? I can't find the relevant content, can you help me point out the specific implementation location.

psi-func commented 1 year ago

Hi, calculating coverage implemented via frida stalker mode dynamic recompilation (edge coverage hitcount map only for x86_64) https://github.com/psi-func/frida-executor/blob/60b45816f1ad646c2321b84233fc6f94d6e112f8/agent/instrumentor.ts#L68 You can change hash function to avoid collisions in map

makerdd commented 1 year ago

Thank you very much for your answer, it is very useful for me. I try to implement coverage detection for x86 architecture.