Memory safety
Memory safety is the state of being protected from various software bugs and security vulnerabilities when dealing with memory access, such as buffer overflows and dangling pointers.[src] For example, Java is memory-safe because its runtime error detection checks array bounds and pointer dereferences.[src] By contrast, programming languages like C, C++, and Fortran allow arbitrary pointer arithmetic with pointers implemented as direct memory addresses with no provision for bounds checking, making them memory-unsafe.[src] Memory-unsafe code is typically found in low level programming, with higher level programming languages generally incorporating either garbage collection or static analysis (as in Rust) to prevent such errors.[src]
Memory safety is the state of being protected from various software bugs and security vulnerabilities when dealing with memory access, such as buffer overflows and dangling pointers.[src] For example, Java is memory-safe because its runtime error detection checks array bounds and pointer dereferences.[src] By contrast, programming languages like C, C++, and Fortran allow arbitrary pointer arithmetic with pointers implemented as direct memory addresses with no provision for bounds checking, making them memory-unsafe.[src] Memory-unsafe code is typically found in low level programming, with higher level programming languages generally incorporating either garbage collection or static analysis (as in Rust) to prevent such errors.[src]
8 sentences · 8 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Memory safety." encyclopegia.org, 2026, https://encyclopegia.org/wiki/memory-safety. Accessed 26 November 2026.
Chicago
"Memory safety." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/memory-safety.
APA
encyclopegia.org. (2026). Memory safety. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/memory-safety
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON