ECC RAM 是否有助于防止缓冲区溢出攻击

Does ECC RAM help prevent buffer overflow attacks

ECC RAM 是否可以防止缓冲区溢出攻击?我在网上找不到任何东西,很好奇。

不!丝毫没有。

好的,让我们从一些定义开始:

Error correction code memory (ECC memory) is a type of computer data storage that uses an error correction code[a] (ECC) to detect and correct n-bit data corruption which occurs in memory. ECC memory is used in most computers where data corruption cannot be tolerated under any circumstances, like industrial control applications, critical databases, and infrastructural memory caches. (Source: wikipedia)

In information security and programming, a buffer overflow, or buffer overrun, is an anomaly where a program, while writing data to a buffer, overruns the buffer's boundary and overwrites adjacent memory locations. (source: wikipedia

基本上,ECC 的设计目的是修复内存中的损坏,例如,宇宙背景辐射。这是一种硬件级技术,对内存中包含的内容一无所知。

缓冲区溢出是一种软件级技术,您可以利用错误代码来逃避特定变量的边界并跳转到内存的其他部分。您仍在写入有效字节,只是它们不在程序预期的位置。