google / oss-fuzz-gen

LLM powered fuzzing via OSS-Fuzz.
Apache License 2.0
780 stars 92 forks source link

introspector: add api to get header files where a function is likely declared #418

Closed DavidKorczynski closed 2 weeks ago

DavidKorczynski commented 2 weeks ago

Also uses it in the C-targeted prompt. In essence an alternative to having this in the prompt is avoiding having these in the prompt and just including the header files mechanically, but I'll explore that later for now.

This has been tested locally on a myriad of C projects, so suggest leaving the CI experimentation for now (I'll add the ability to apply a given model shortly)

DavidKorczynski commented 2 weeks ago

/gcbrun skip

DonggeLiu commented 2 weeks ago

This is a pretty good direction, could you please explain the underlying heuristic of the API? I might be able to replace my function with it.

DonggeLiu commented 2 weeks ago

suggest leaving the CI experimentation for now (I'll add the ability to apply a given model shortly)

Yep, please do; I am curious to see its improvements.