Reading truncated file

Incomplete (truncated) file can sometimes be read into Stata without an error message and look 'plausible'.

Original bug report sent to StataCorp Aug.02.2011, no attachments here, but they are not that important.

Bumped into this issue again in December 2013 while using older Statas.

From Stata version 13 treats the file properly (stops with an error), at least when the number of observations differs.

Demo-script (seems to run in Stata 9-12, but not in 13), and resembles all the symptoms of the confidential problematic file.