Automatic bug fixing uses Machine intelligence techniques, such as Genetic Programming to automate the process of fixing or repairing computer bugs. It is an important application of Genetic Improvement.
While still controversial, automatic bug fixing has been demonstrated on real bugs in real computer programs. It may not be able to satisfactorily repair all software bugs but Weimer et al. have shown genetic programming is able to repair a large fraction of real bugs in C and C++.
References
Automatic Software Repair: a Bibliography http://www.monperrus.net/martin/survey-automatic-repair.pdf
Automatic program repair with evolutionary computation http://dx.doi.org/doi:10.1145/1735223.1735249
Automated Patching Techniques: The Fix Is In (CACM 2010) http://dx.doi.org/doi:10.1145/1735223.1735248
Patching program errors (CACM 2008) http://dx.doi.org/doi:10.1145/1409360.1409381