Skip to content
Free planNo credit card requiredStart writing

other · Tampere University Institutional Repository (Tampere University) · 2020

Taking code analysis into use for existing codebase

Uitto, Janne

Cited by 0Open access

Abstract

The amount of the code increases in applications across industries. Also, the amount of vulnerabilities has increased, which increases the importance of quality assurance. Any kind of quality assurance increases the probability of finding the issues from programs. One method to detect security vulnerabilities is to run code analysis. Code analysis tools can automatically detect potential security vulnerabilities from source code including overruns, using uninitialised memory, null pointer dereferences, and memory leaks.
\nThis thesis shows how a code analysis tool can be included as part of a company's existing software development process so that new issues can be found as early as possible. Code analysis tools might report many findings from codebases that have not been analysed previously. Existing issues need to be fixed so that new issues can be identified easily. The effort on fixing existing issues was compared to the severity of found issues, which then gave the cost-effectiveness of the effort spent on fixing.
\nA code analysis tool was taken into use at M-Files. The code analysis tool reported a total of 3,064 existing issues from the company's codebase. Found issues were categorised into three severity levels: 3,054 low, 3 high, and 7 critical issues were found. Found issues were fixed. It took 60.5 work hours to fix these issues.
\nA CI pipeline is used to automate integration steps for the new code. After existing issues were fixed the code analysis tool was set to monitor all new changes in the company's CI pipeline. Currently, it is mandatory to have a clean analysis result before new changes can be merged into the main code branch. This reduces the number of issues, including vulnerabilities, in released software.
\nIt is not mandatory to have a code analysis tool to verify codebase from the beginning of the project. This thesis shows that it was a tolerable effort to take code analysis into use for the existing codebase. Setting up code analysis as part of the development process as soon as possible is a recommended action for all organisations.

Cite this paper

APA 7

Uitto, J. (2020). Taking code analysis into use for existing codebase. Tampere University Institutional Repository (Tampere University).

MLA 9

Uitto, Janne. “Taking code analysis into use for existing codebase.” Tampere University Institutional Repository (Tampere University), 2020.

Chicago

Uitto, Janne. 2020. “Taking code analysis into use for existing codebase.” Tampere University Institutional Repository (Tampere University).

Harvard

Uitto, J. (2020) ‘Taking code analysis into use for existing codebase’, Tampere University Institutional Repository (Tampere University).

BibTeX
@misc{uitto2020taking,
  title = {{Taking code analysis into use for existing codebase}},
  author = {Uitto, Janne},
  journal = {Tampere University Institutional Repository (Tampere University)},
  year = {2020}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.