The length should always be at least 8 bytes, otherwise there wouldn't be enough space for the header fields. And a record length of zero would cause an infinite loop when reading entries. Return an error if the record length doesn't make sense to guard against bugs and malicious filesystems.
The length should always be at least 8 bytes, otherwise there wouldn't be enough space for the header fields. And a record length of zero would cause an infinite loop when reading entries. Return an error if the record length doesn't make sense to guard against bugs and malicious filesystems.