arrow
返回

Characterizing usages, updates and risks of third-party libraries in Java projects

delete2022-04-14
delete9
PRE
AI
K
Kaifeng Huang
B
Bihuan Chen *
C
Congying Xu
Y
Ying Wang
B
Bowen Shi
X
Xin Peng
Y
Yijian Wu
刘洋 (Yang Liu)
DOI:10.1007/s10664-022-10131-8delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Third-party libraries are a key building block in software development as they allow developers to reuse common functionalities instead of reinventing the wheel. However, third-party libraries and client projects are developed and continuously evolving in an asynchronous way. As a result, outdated third-party libraries might be commonly used in client projects, while developers are unaware of the potential risk (e.g., security bugs) in usages. Outdated third-party libraries might be updated in client projects in a delayed way, while developers are less aware of the potential risk (e.g., API incompatibilities) in updates. Developers of third-party libraries may be unaware of how their third-party libraries are used or updated in client projects. Therefore, a quantitative and holistic study on usages, updates and risks of third-party libraries in open-source projects can provide concrete evidence on these problems, and practical insights to improve the ecosystem sustainably. In this paper, we make the first contribution towards such a study in the Java ecosystem. First, using 806 open-source projects and 13,565 third-party libraries, we conduct a library usage analysis (e.g., usage intensity and usage outdatedness), followed by a library update analysis (e.g., update intensity and update delay). The two analyses aim to quantify usage and update practices from the two holistic perspectives of open-source projects and third-party libraries. Then, we carry out a library risk analysis (e.g., usage risk and update risk) on 806 open-source projects and 544 security bugs. This analysis aims to quantify the potential risk of using and updating outdated third-party libraries with respect to security bugs. Our findings suggest practical implications to developers and researchers on problems and potential solutions in maintaining third-party libraries (e.g., smart alerting and automated updating of outdated third-party libraries). To demonstrate the usefulness of our findings, we propose a security bug-driven alerting system, named LibSecurify, for assisting developers to make confident decisions by quantifying risks and effort when updating outdated third-party libraries. 33 open-source projects have confirmed the presence of security bugs after receiving our alerts, and 24 of those 33 have updated their third-party libraries. We have released our dataset to foster valuable applications and improve the Java third-party library ecosystem.
Keyword:
Library usages
Library updates
Library risks
Security bugs

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

F
fudan university
学者数:
11.8W
论文数: 7.7W
被引数: 121
N
Nanyang Technological University
学者数:
4.9W
论文数: 4.8W
被引数: 8.1W
引用论文

引用论文

A Hybrid ACO+CP for Balancing Bicycle Sharing Systems
err2013-01-01
err0
PREAI
errLuca Di Gaspero; Andrea Rendl; Tommaso Urli
err分享
err收藏
Corrigendum: CTCF-mediated topological boundaries during development foster appropriate gene regulation
err2017-09-25
err0
errOAAI
errVarun Narendra; Milia Bulajić; Job Dekker; Esteban O. Mazzoni; Danny Reinberg
err分享
err收藏
err分享
err收藏
Monitoring Global Change in High Mountains
err2017-08-05
err0
errOAAI
errRegino Zamora; Antonio J. Pérez-Luque; Francisco J. Bonet
err分享
err收藏
Japanese phase I study of cabazitaxel in metastatic castration-resistant prostate cancer
err2015-03-26
err0
PREAI
errMasahiro Nozawa; Hirofumi Mukai; Shunji Takahashi; Hiroji Uemura; Takeo Kosaka; Yusuke Onozawa; Jun Miyazaki; Kazuhiro Suzuki; Koji Okihara; Yoichi Arai; Tomomi Kamba; Masashi Kato; Yasutomo Nakai; Hiroshi Furuse; Haruki Kume; Hisamitsu Ide; Hiroshi Kitamura; Akira Yokomizo; Takahiro Kimura; Yoshihiko Tomita; Keiji Ohno; Yoshiyuki Kakehi
err分享
err收藏
Computational Fluid Dynamics Study on Heat Transfer Augmentation in Tube With Various V-Cut Twisted Tape
err2022-04-05
err0
PREAI
errWen-Xiao Chu; Ching-An Tsai; Bing-Hung Lee; Kai-Yueh Cheng; Chi-Chuan Wang
err分享
err收藏
Descriptive epidemiology and risk factors for head and neck cancer
err2004-12-01
err0
PREAI
errErich M. Sturgis; Qingyi Wei; Margaret R. Spitz
err分享
err收藏
学者 查看更多内容