Mitigating Implicit Inconsistencies in Patch Porting
Shengyi Pan, Zhongxin Liu, Jiayuan Zhou, Xing Hu, Xin Xia, Shanping Li

TL;DR
This paper introduces MIP, a collaborative approach using LLMs, compilers, and code analysis to address implicit inconsistencies in automated patch porting across codebases.
Contribution
MIP is a novel method that effectively resolves non-local, implicit inconsistencies in patch porting by combining multiple tools and strategies.
Findings
MIP resolves over twice as many patches as the best baseline.
MIP performs well in cross-fork and cross-branch scenarios.
User study confirms practical effectiveness of MIP.
Abstract
Promptly porting patches from a source codebase to its variants (e.g., forks and branches) is essential for mitigating propagated defects and vulnerabilities. Recent studies have explored automated patch porting to reduce manual effort and delay, but existing approaches mainly handle inconsistencies visible in a patch's local context and struggle with those requiring global mapping knowledge between codebases. We refer to such non-local inconsistencies as implicit inconsistencies. Implicit inconsistencies pose greater challenges for developers to resolve due to their non-local nature. To address them, we propose MIP, which enables collaboration among an LLM, a compiler, and code analysis utilities. MIP adopts different strategies for different cases: when source identifiers exist in the target codebase, it leverages compiler diagnostics; otherwise, it retrieves matched code segment…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
