encyclopegia.org

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

Related articles

Memory Wall

article · references available

declarative memory

stub · references available

explicit memory

stub · references available

echoic memory

stub · references available

safety harness

stub · references available

In Memory of Nikki Arane

stub · references available

non-volatile random-access memory

stub · references available

memory address register

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375273789 · 0.5 · snapshot enwiki-001375273789

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.