arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2103.11894cs.SE
收藏

Mea culpa:开发者修复自己的简单漏洞与其他开发者有何不同

Mea culpa: How developers fix their own simple bugs differently from other developers

Wenhan Zhu, Michael W. Godfrey

AI总结:

基于SStuBs数据集研究代码作者身份对漏洞修复提交的影响,发现原作者修复简单漏洞的速度更快且提交规模更大,而其他开发者的修复更小且专注,为定制化修复工具提供了依据。

摘要:

在这项工作中,我们使用 SStuBs 数据集研究了代码作者身份如何影响漏洞修复提交,该数据集包含了流行 Java Maven 项目中的单语句漏洞修复变更集合。更具体地说,我们研究了原始作者(即提交引入漏洞代码的开发者)与不同开发者(即非作者)在修复简单漏洞特征上的差异。我们的研究表明,近一半(即 44.3%)的简单漏洞是由不同的开发者修复的。我们发现原始作者和不同开发者进行的漏洞修复在质量和数量上均存在差异。我们观察到,作者的漏洞修复时间比其他开发者短得多。我们还发现,作者的漏洞修复提交往往在规模和范围上更大,并解决多个问题,而其他开发者的漏洞修复提交往往更小,且更专注于漏洞本身。未来的研究可以进一步研究漏洞修复中的不同模式,并根据开发者的需求创建更加量身定制的工具。

英文摘要:

In this work, we study how the authorship of code affects bug-fixing commits using the SStuBs dataset, a collection of single-statement bug fix changes in popular Java Maven projects. More specifically, we study the differences in characteristics between simple bug fixes by the original author -- that is, the developer who submitted the bug-inducing commit -- and by different developers (i.e., non-authors). Our study shows that nearly half (i.e., 44.3%) of simple bugs are fixed by a different developer. We found that bug fixes by the original author and by different developers differed qualitatively and quantitatively. We observed that bug-fixing time by authors is much shorter than that of other developers. We also found that bug-fixing commits by authors tended to be larger in size and scope, and address multiple issues, whereas bug-fixing commits by other developers tended to be smaller and more focused on the bug itself. Future research can further study the different patterns in bug-fixing and create more tailored tools based on the developer's needs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑