sshirokov/csgtool — pull request #62 by sshirokov (2014-09-23 08:28:33+00:00)
Title: lstat(2) the fd before we alloc an stl_object

This prevents the allocation of an `stl_object` when the file on disk cannot possibly contain the data that is promised by the file header.

Avoids spending time parsing files that are invalid on size alone.