Home >  Term: aliasing bug
aliasing bug

A class of subtle programming errors that can arise in code that performs dynamic allocation. If several pointers address the same chunk of storage, the program may free the storage using one of the pointers but then attempt to use another one (an alias), which would no longer be pointing to the desired data. This bug is avoidable by the use of allocation strategies that never use more than one copy of a pointer to allocated core memory, or by the use of higher-level languages, such as LISP, which employ a garbage collection feature.

0 0

Kūrėjas

  • Maxiao
  •  (V.I.P) 19232 points
  • 100% positive feedback
© 2024 CSOFT International, Ltd.