Towards Understanding Third-party Library Dependency in C/C++ Ecosystem

Wei Tang, Zhengzi Xu, Chengwei Liu, Jiahui Wu, Shouguo Yang +3 more
9/6/2022
cs.SE

Official code: lkpsg/ccscanner (41 stars, CMake, MIT, last commit 2023-11-24).

Abstract

Third-party libraries (TPLs) are frequently reused in software to reduce development cost and the time to market. However, external library dependencies may introduce vulnerabilities into host applications.

Show full abstract

The issue of library dependency has received considerable critical attention. Many package managers, such as Maven, Pip, and NPM, are proposed to manage TPLs. Moreover, a significant amount of effort has been put into studying dependencies in language ecosystems like Java, Python, and JavaScript except C/C++. Due to the lack of a unified package manager for C/C++, existing research has only few understanding of TPL dependencies in the C/C++ ecosystem, especially at large scale. Towards understanding TPL dependencies in the C/C++ecosystem, we collect existing TPL databases, package management tools, and dependency detection tools, summarize the dependency patterns of C/C++ projects, and construct a comprehensive and precise C/C++ dependency detector. Using our detector, we extract dependencies from a large-scale database containing 24K C/C++ repositories from GitHub. Based on the extracted dependencies, we provide the results and findings of an empirical study, which aims at understanding the characteristics of the TPL dependencies. We further discuss the implications to manage dependency for C/C++ and the future research directions for software engineering researchers and developers in fields of library development, software composition analysis, and C/C++package manager.

View on arXivView PDF

Code Implementations(1)

lkpsg/ccscannerOfficial100%
MIT

A C/C++ dependency scanner

4113CMake, PythonApr 20, 20223 years agoMIT

Similar Papers

Cite this paper

@article{tang2022towards,
  title  = {Towards Understanding Third-party Library Dependency in C/C++ Ecosystem},
  author = {Wei Tang and Zhengzi Xu and Chengwei Liu and Jiahui Wu and Shouguo Yang and Yi Li and Ping Luo and Yang Liu},
  year   = {2022},
  eprint = {2209.02575},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.02575}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.02575.svg)](https://codeofpaper.com/paper/2209.02575)

Discussion