Guo Tao
China Information Technology Security Evaluation Center, Beijing, China
Dong Guowei
China Information Technology Security Evaluation Center, Beijing, China
Qin Hu
China Information Technology Security Evaluation Center, Beijing, China
Long Baolian
School of Computer, Beijing University of Posts and Telecommunications, Beijing, 100876, China
Qu Tong
School of Computer, Beijing University of Posts and Telecommunications, Beijing, 100876, China
Cui Baojiang
School of Computer, Beijing University of Posts and Telecommunications, Beijing, 100876, China
ABSTRACT
Similarity detection technique of code has been widely used. At present, the technique is mainly used for the judgment of plagiarized code. In this study, on the basis of code similarity detection technique, we put forward a static analysis method of defect detection of source code, it adopts lexical analysis and comparison which based of token. Similarity comparison of defective samples can also been achieved in this way. After testing result and comparing with other similar tools, the result demonstrate that the static analysis method based on similarity comparison of token structures defective sample much more easily than others and it has a good expansibility not only about programing language but also in the point of different defect type. The same type defect can be detected thereby help programmer avoid having the same defective code.
PDF References Citation
How to cite this article
Guo Tao, Dong Guowei, Qin Hu, Long Baolian, Qu Tong and Cui Baojiang, 2013. Defect Detection Technique Based on Similarity Comparison of Token. Journal of Applied Sciences, 13: 4270-4277.
DOI: 10.3923/jas.2013.4270.4277
URL: https://scialert.net/abstract/?doi=jas.2013.4270.4277
DOI: 10.3923/jas.2013.4270.4277
URL: https://scialert.net/abstract/?doi=jas.2013.4270.4277
REFERENCES
- Cui, B., J. Guan, T. Guo, L. Han, J. Wang and Y. Ji, 2011. Code syntax-comparison algorithm based on type-redefinition-preprocessing and rehash classification. J. Multimedia, 6: 320-328.
Direct Link - Han, L., B. Cui, J.X. Wang and Y. Hao, 2010. Type redefinition plagiarism detection of token-based comparison. Proceedings of the 2nd International Conference on Multimedia Information Networking and Security, November 4-6, 2010, Nanjing, China, pp: 351-355.
CrossRef