Title
R2Fix: Automatically Generating Bug Fixes from Bug Reports
Abstract
Many bugs, even those that are known and documented in bug reports, remain in mature software for a long time due to the lack of the development resources to fix them. We propose a general approach, R2Fix, to automatically generate bug-fixing patches from free-form bug reports. R2Fix combines past fix patterns, machine learning techniques, and semantic patch generation techniques to fix bugs automatically. We evaluate R2Fix on three projects, i.e., the Linux kernel, Mozilla, and Apache, for three important types of bugs: buffer overflows, null pointer bugs, and memory leaks. R2Fix generates 57 patches correctly, 5 of which are new patches for bugs that have not been fixed by developers yet. We reported all 5 new patches to the developers, 4 have already been accepted and committed to the code repositories. The 57 correct patches generated by R2Fix could have shortened and saved up to an average of 63 days of bug diagnosis and patch generation time.
Year
DOI
Venue
2013
10.1109/ICST.2013.24
ICST
Keywords
Field
DocType
bug reports,past fix pattern,automatically generating bug fixes,patch generation time,free-form bug report,correct patch,long time,bug report,bug-fixing patch,null pointer bug,new patch,bug diagnosis,buffer overflows,memory leaks,linux,kernel,generators,accuracy,computer bugs,code repository,security,linux kernel,learning artificial intelligence
Pointer (computer programming),Computer science,Software bug,Software,Security bug,Bebugging,Memory leak,Operating system,Buffer overflow,Linux kernel
Conference
Citations 
PageRank 
References 
27
0.74
25
Authors
4
Name
Order
Citations
PageRank
Chen Liu1270.74
Jinqiu Yang22006.73
Lin Tan3164867.22
Munawar Hafiz422415.40