Stack Overflow: A code laundering platform?
Authors:
- 23 March 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 283-293
Abstract
Developers use Question and Answer (Q&A) websites to exchange knowledge and expertise. Stack Overflow is a popular Q&A website where developers discuss coding problems and share code examples. Although all Stack Overflow posts are free to access, code examples on Stack Overflow are governed by the Creative Commons Attribute-ShareAlike 3.0 Unported license that developers should obey when reusing code from Stack Overflow or posting code to Stack Overflow. In this paper, we conduct a case study with 399 Android apps, to investigate whether developers respect license terms when reusing code from Stack Overflow posts (and the other way around). We found 232 code snippets in 62 Android apps from our dataset that were potentially reused from Stack Overflow, and 1,226 Stack Overflow posts containing code examples that are clones of code released in 68 Android apps, suggesting that developers may have copied the code of these apps to answer Stack Overflow questions. We investigated the licenses of these pieces of code and observed 1,279 cases of potential license violations (related to code posting to Stack overflow or code reuse from Stack overflow). This paper aims to raise the awareness of the software engineering community about potential unethical code reuse activities taking place on Q&A websites like Stack Overflow.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- On the Detection of Licenses Violations in the Android Ecosystem2016
- Evaluating Modern Clone Detection Tools2014
- StackOverflow and GitHub: Associations between Software Development and Crowdsourced Knowledge2013
- What are developers talking about? An analysis of topics and trends in Stack OverflowEmpirical Software Engineering, 2012
- Discovering value from community activity on focused question answering sites2012
- License risks from ad hoc reuse of code from the internetCommunications of the ACM, 2011
- The NiCad Clone Detector2011
- Comparison and evaluation of code clone detection techniques and tools: A qualitative approachScience of Computer Programming, 2009
- Knowledge sharing and yahoo answers2008
- Insights into system-wide code duplication2005