摘要
C语言和C++语言风格轻松、灵活,语法限制宽松,因而受到各类程序员的欢迎,是目前比较通用的编程语言,同时也是各大院校计算机专业的基本语言课程。strcpy函数由于不对数组边界进行检查,而非常容易造成各种缓冲区溢出的漏洞。这些漏洞很容易被利用,而造成严重的系统问题。在使用strcpy函数时,要小心谨慎。该文就Strcpy函数中的缓冲区溢出问题和防范进行讨论。
C language and C++ language style easy, flexible and relaxed restrictions on syntax, which was welcomed by various programmers, is the more common programming language, but also the major institutions of the basic language of computer science courses. strcpy function as an array of border checks does not, and very easily lead to a variety of buffer overflow vulnerability. These vulnerabilities can easily be used, leading to severe system problems. Using the strcpy function, be careful. This article Strcpy buffer function Areas to prevent overflow problems and discussions.
作者
应可
YING Ke (Nantong Higher Normal School, Nantong 226000, China)
出处
《电脑知识与技术(过刊)》
2010年第23期6518-6520,共3页
Computer Knowledge and Technology