arrow
Return

Mining Fix Patterns for FindBugs Violations

delete2021-01-01
delete92
delete
OA
AI
刘
刘逵 (Kui Liu)
D
Dongsun Kim *
T
Tegawendé F. Bissyandé
S
Shin Yoo
Y
Yves Le Traon
DOI:10.1109/TSE.2018.2884955delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Several static analysis tools, such as Splint or FindBugs, have been proposed to the software development community to help detect security vulnerabilities or bad programming practices. However, the adoption of these tools is hindered by their high false positive rates. If the false positive rate is too high, developers may get acclimated to violation reports from these tools, causing concrete and severe bugs being overlooked. Fortunately, some violations are actually addressed and resolved by developers. We claim that those violations that are recurrently fixed are likely to be true positives, and an automated approach can learn to repair similar unseen violations. However, there is lack of a systematic way to investigate the distributions on existing violations and fixed ones in the wild, that can provide insights into prioritizing violations for developers, and an effective way to mine code and fix patterns which can help developers easily understand the reasons of leading violations and how to fix them. In this paper, we first collect and track a large number of fixed and unfixed violations across revisions of software. The empirical analyses reveal that there are discrepancies in the distributions of violations that are detected and those that are fixed, in terms of occurrences, spread and categories, which can provide insights into prioritizing violations. To automatically identify patterns in violations and their fixes, we propose an approach that utilizes convolutional neural networks to learn features and clustering to regroup similar instances. We then evaluate the usefulness of the identified fix patterns by applying them to unfixed violations. The results show that developers will accept and merge a majority (69/116) of fixes generated from the inferred fix patterns. It is also noteworthy that the yielded patterns are applicable to four real bugs in the Defects4J major benchmark for software testing and automated repair.
Keywords:
Fix pattern
pattern mining
program repair
findbugs violation
unsupervised learning
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

U
university of luxembourg
Scholars:
5.2K
Papers: 4.8K
Citations: 4
Cited Papers

Cited Papers

Properties of cardiac conduction in a cell-based computational model
err2019-05-31
err0
errOAAI
errKaroline Horgmo Jæger; Andrew G. Edwards; Andrew McCulloch; Aslak Tveito
errShare
errSave
Balanocarpol, a new polyphenol from Balanocarpus zeylanicus(trimen) and Hopea jucunda(Thw.)(Dipterocarpaceae)
err1985-01-01
err0
PREAI
errM. N. Champika Diyasena; Subramaniam Sotheeswaran; Sivagnanasunderam Surendrakumar; Sinnathamby Balasubramanian; Michael Bokel; Wolfgang Kraus
errShare
errSave
Best Management Practices and Nutrient Reduction: An Integrated Economic-Hydrologic Model of the Western Lake Erie Basin
err2020-12-18
err0
errOAAI
errHongxing Liu; Wendong Zhang; Elena Irwin; Jeffrey Kast; Noel Aloysius; Jay Martin; Margaret Kalcic
errShare
errSave
Ebola virus sequencing protocol v1
err
IF0
err2019-09-25
err0
errOAAI
errJosh Quick
errShare
errSave
researcher View more