[go: nahoru, domu]

删除的内容 添加的内容
标签已被回退 清空章节
标签撤销
第352行:
 
使用[[堆]](Heap)内存将带来额外的开销和风险。
 
== 安全问题 ==
C语言的特色之一是:语言不负责内存边界检查,这是因为在运行时进行内存边界检查会造成[[性能问题]],与UNIX哲学不符。此特性容易导致[[缓冲区溢出]]问题。然而,部分编译器(如英特尔编译器)会出于安全性的考量,提供方法以进行运行时内存边界检查<ref>{{cite web |title=check-pointers, Qcheck-pointers |url=https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/data-options/check-pointers-qcheck-pointers.html |website=Intel |accessdate=2021-06-01 |language=en}}</ref>。
 
== 库 ==