Patent ID: 8103933

Claim:
A method for ensuring integrity of data in a data-processing device, the method comprising: aa) reading a data packet from a memory, the data packet including a first data and a first integrity testing information regarding the first data; ab) computing a second integrity testing information from the read first data; ac) comparing the first integrity information with the second integrity information to determine whether the data packet is an existing code word of a predefined first code; b) if the data packet is an existing code word, accepting the data packet as intact; and c) if the data packet is not an existing code word, performing the following: c1) ascertaining at least one data block of an error-correcting second code that overlaps with the read data packet; c2) searching for an error in the data packet using the second code; and c3) correcting the data packet based on the result of the search; wherein: the data, whose integrity is to be ensured, encompass a plurality of data packets of different lengths, and steps a) through c3) are executed for each of these data packets; and the data include program instructions which are subdivided into a plurality of routines, and at least some of the boundaries among the data packets, which are stored successively in the memory, coincide with boundaries among the program routines.