Jump to content

Data truncation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Eds147eds (talk | contribs) at 15:16, 16 July 2010 (See also). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Data truncation occurs when data or a data stream (such as a file) is stored in a location too short to hold its entire length. Data truncation may occur automatically, such as when a long string is written to a smaller buffer, or deliberately, when only a portion of the data is wanted.

Depending on what type of data validation a program or operating system has, the data may be truncated silently (i.e., without informing the user), or the user may be given an error message.

See also