Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Storage violation

From Wikipedia, the free encyclopedia
Hardware or software fault

Incomputing astorage violation is a hardware or softwarefault that occurs when atask attempts to access an area ofcomputer storage which it is not permitted to access.

Types of storage violation

[edit]

Storage violation can, for instance, consist of reading from, writing to, or freeing storage not owned by the task. A common type of storage violation is known as astack buffer overflow where a program attempts to exceed the limits set for itscall stack. It can also refer to attempted modification of memory "owned" by another thread where there is incomplete (or no) memory protection.

Avoidance of storage violations

[edit]

Storage violations can occur in transaction systems such asCICS in circumstances where it is possible to write to storage not owned by the transaction; such violations can be reduced by enabling features such asstorage protection andtransaction isolation.

Detection of storage violations

[edit]

Storage violations can be difficult to detect as a program can often run for a period of time after the violation before it crashes. For example, a pointer to a freed area of memory can be retained and later reused causing an error. As a result, efforts focus on detecting violations as they occur, rather than later when the problem is observed.

In systems such as CICS, storage violations are sometimes detected (by the CICSkernel) by the use of "signatures", which can be tested to see if they have been overlaid.

An alternative runtime library may be used to better detect storage violations, at the cost of additional overhead.[1]Some programming languages use softwarebounds checking to prevent these occurrences.

Some programdebugging software will also detect violations during testing.

Common causes

[edit]
  • A runaway subscript leading to illegal use of reference modification during run time.
  • Linkage layout mismatch between called and the calling elements.
  • Use of previously freed (and sometimes already re-allocated) memory.

Examples of software detecting storage violations

[edit]

See also

[edit]

References

[edit]
  1. ^"Debug Malloc Library".Dmalloc - Debug Malloc Library. Retrieved2017-04-26.

External links

[edit]


Stub icon

Thiscomputer science article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Storage_violation&oldid=1220169401"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp