The inconsistency of documentation: a study of online C standard library documents
Open Access
- 2 July 2022
- journal article
- research article
- Published by Springer Nature in Cybersecurity
- Vol. 5 (1) , 1-15
Abstract
The C standard libraries are basic function libraries standardized by the C language. Programmers usually refer to their API documentation provided by third-party websites. Unfortunately, these documents are not necessarily complete or accurate, especially for constraint sentences of API usage, which are called Security Specifications (SSs). SS issues can prevent programmers from following obligatory constraints, which results in API misuse vulnerabilities. Previous work studying SS issues could only find certain types of inaccurate SSs through checking the compliance between API usage and existing SSs. Therefore, we propose a novel approach SSeeker for quickly discovering missing and inaccurate SSs through the inconsistency of semantically similar SSs. More specifically, SSeeker first completes broken sentences and discovers SSs from them by judging their constraint sentiment. Then SSeeker puts semantically similar SSs from different sources into a group, which can be used to discover missing or inaccurate SSs. With the help of SSeeker, we investigated 4 popular online third-party C standard library documents, studied their conformity with the C99 standard, analyzed their APIs and SSs, and discovered 92 prototype issues, 15 web page issues, and 96 SS issues.Keywords
This publication has 20 references indexed in Scilit:
- Analyzing APIs Documentation and Code to Detect Directive Defects2017
- Automatic generation of oracles for exceptional behaviors2016
- Hierarchical Attention Networks for Document Classification2016
- Glove: Global Vectors for Word Representation2014
- Convolutional Neural Networks for Sentence Classification2014
- Detecting API documentation errors2013
- Inferring method specifications from natural language API descriptions2012
- @tComment: Testing Javadoc Comments to Detect Comment-Code Inconsistencies2012
- /*icomment2007
- Shallow parsing with conditional random fields2003