ChrisTimperley / RepairChain

AIxCC: automated vulnerability repair via LLMs, search, and static analysis
Apache License 2.0
3 stars 0 forks source link

Completed implementation of LLM-based template repair strategies #54

Closed clegoues closed 2 months ago

clegoues commented 2 months ago

Clean template implementation. These templates rely on the "replacement-to-diff" functionality and assume the ability to incrementally index.

Note that not all of the template implementation code is final --- the overflow templates are notably bad and I'm halfway through a better version. But the core structure should be instructive, and I can push improvements after dinner.

One way to think about these strategies is that they leverage more precise location information in the LLM --- YOLO only asks to replace the implicated functions, these generally do slightly more targeted things, even though they also largely make use of the LLM.