ossf / fuzz-introspector

Fuzz Introspector -- introspect, extend and optimise fuzzers
https://fuzz-introspector.readthedocs.io
Apache License 2.0
368 stars 54 forks source link

Include function argument names as part of "function-arguments" for introspector API #1175

Open oliverchang opened 1 year ago

oliverchang commented 1 year ago

We discussed this offline, but it would be very nice to get the function arg names returned in /api/far-reach-but-low-coverage as part of the existing "function-arguments" value.

DavidKorczynski commented 1 year ago

We extract this for C/C++ in the frontend https://github.com/ossf/fuzz-introspector/blob/13ba8d52e623b63b098e27753c5696c64386a135/frontends/llvm/lib/Transforms/FuzzIntrospector/FuzzIntrospector.cpp#L1072

However, when expecting the output the values are all empty strings. It could be this is gone at the point we extract them. I need to investigate a bit more -- it may be we need to open up for a way to inspect these values at a different stage of the compilation process. Perhaps, we need to extract it from the source code itself, which we can do since we do know the location of the functions we're analysing.